Commit Graph

2580 Commits

Author SHA1 Message Date
evan188199-tech
a282bcd6d6 test(session): cover pocketbase_store failure branches and pagination edges (#1773)
* test(session): cover pocketbase_store failure branches and pagination edges

* docs: add PR evidence for pocketbase_store fallback coverage

---------

Co-authored-by: XZH <cto@xzh.ai>
2026-10-07 20:14:24 +08:00
evan188199-tech
f0348731de test(co-writer): lock router contract for CRUD, 4xx payloads, export failures (#1768)
Coverage gap: deeptutor/api/routers/co_writer.py had 246 missing lines
(40.0%). Add tests/api/routers/test_co_writer_contract.py (40 cases):
document CRUD request/response shapes, illegal-payload 4xx handling,
export/import failure branches, edit/automark agent passthrough, and
history/tool-calls endpoints. All storage and agent work is stubbed to
tmp_path; no product code changed.

Evidence: evidence/co-writer-tests-20261003/ (40 passed on
origin/main ef2d9e5c3; no failing cases, contract currently holds).

Co-authored-by: XZH <cto@xzh.ai>
2026-10-07 20:14:11 +08:00
evan188199-tech
a325ddfbbd test(plugins): pin entry-point loader contract across load, isolation, duplicate and gating paths (#1740)
* test(plugins): pin entry-point loader contract across load, isolation, duplicate and gating paths

* style(plugins): format test_entrypoint_loader to satisfy ruff format

---------

Co-authored-by: XZH <cto@xzh.ai>
2026-10-07 20:13:55 +08:00
evan188199-tech
7e7b135709 test(book): cover engine stage transitions (#1718)
* test(book): cover engine stage transitions

Pin the three guarantees a long book generation depends on:
stage order with per-stage artefact persistence, single-stage failure
retry without duplicating output (exploration degrade + page-level
compile retry), and pause/resume recovery that never re-pays finished
pages. All agents and the compiler are faked — no LLM, no long tasks.

* docs: add PR evidence for book engine stage transition tests

---------

Co-authored-by: XZH <cto@xzh.ai>
2026-10-07 20:13:36 +08:00
evan188199-tech
6e208560da test(storage): lock file library disk-deletion failure paths (#1719)
Merge the six DT-22 regression cases (previously on a separate
test_file_library_deletion.py branch) into the existing per-module
test file, right after the delete_file / hard_delete_file sections:

- successful delete prunes now-empty parents, keeps non-empty ones
  and the library root itself
- missing on-disk target is a silent no-op; hard delete still clears
  the DB row when the disk file vanished out-of-band
- unlink failure is only logged (list-vs-disk inconsistency window)
- an exception while pruning parents is swallowed: file still
  removed, empty dirs left behind, caller unaffected (current
  behaviour pinned)

Coverage of deeptutor.services.storage.file_library: 84% -> 87%
(196-197 and 203-206 now covered). No product code changes.

Co-authored-by: XZH <cto@xzh.ai>
2026-10-07 20:13:15 +08:00
evan188199-tech
d81e1b2ea0 test(reading): cover the bilingual EPUB pairing pipeline edge cases (#1738)
* test(reading): cover the bilingual EPUB pairing pipeline edge cases

* style(reading): apply ruff format to bilingual EPUB unit tests

---------

Co-authored-by: XZH <cto@xzh.ai>
2026-10-07 20:13:02 +08:00
evan188199-tech
27ef7af57c test(api): cover learning-records account isolation and read boundaries (#1739)
* test(api): cover learning-records account isolation and read boundaries

Regression protection for GET /api/mastery-paths/reading/records
(#1109/#1130): cross-account invisibility through the real
require_learning_surface auth stack, the 200-entry most-recent-first
activity tail, the empty-account branch, 401 on missing/invalid tokens,
405 on writes, and 400 on conflicting workspace scopes.

* test(api): fix ruff import order and formatting in learning-records tests

---------

Co-authored-by: XZH <cto@xzh.ai>
2026-10-07 20:12:46 +08:00
evan188199-tech
d7a8610731 test(question): pin mimic websocket error-path and stdout interceptor failure contracts (#1741)
* test(question): pin mimic websocket error-path and stdout interceptor failure contracts

Failure-injection characterization tests for the two DT-22 HIGH findings on
websocket_mimic_generate: the outer error broadcast swallow and the
StdoutInterceptor terminal-write swallow (ex-TeeWrite). Pins that send/write
failures stay isolated, process stdout is always restored, and the websocket
still closes. 现状豁免 recorded in docstrings: the swallows are silent by
design today; surfacing them is a code change outside this test-only card.

* style(tests): reformat question router mimic websocket test for ruff format

---------

Co-authored-by: XZH <cto@xzh.ai>
2026-10-07 20:12:37 +08:00
evan188199-tech
614834dad0 test: add tex_downloader/tex_chunker toolchain tests (#1748)
Co-authored-by: XZH <cto@xzh.ai>
2026-10-07 20:12:27 +08:00
evan188199-tech
58b3f54c36 test(partners): lock outbound dispatch timeout semantics (#1763)
_dispatch_outbound's 'except asyncio.TimeoutError: continue' is the 1s
idle-poll timeout on an empty outbound queue, not a message skip: a
cancelled Queue.get() pops nothing and a consume finishing despite the
timeout has its result returned by wait_for. Channel send timeouts are
Exception subclasses retried inside _send_with_retry (backoff 1s/2s/4s,
send_max_retries attempts) and logged on give-up. Document this on the
handler and lock it with focused tests (idle poll then deliver, send
timeout retried in-dispatch, retries exhausted after max attempts).

Co-authored-by: XZH <cto@xzh.ai>
2026-10-07 20:12:16 +08:00
evan188199-tech
34dadc296b test: freeze naive FIXED_NOW for cross-platform TZ stability (#1733)
* test: pin TZ in runtime_context date assertions for cross-timezone stability

* test: freeze naive FIXED_NOW for cross-platform TZ stability

Rework of 568c522f0 per review: datetime.now() returns a naive datetime,
so .astimezone() only attaches the host zone without shifting the calendar
date. The aware frozen clock made astimezone() convert across zones and
west-of-UTC hosts rendered the previous day. Making FIXED_NOW naive fixes
every timezone on every OS (including Windows) with no TZ env or tzset()
global-state churn; the tz-pinning fixture is reverted as unnecessary.

---------

Co-authored-by: XZH <cto@xzh.ai>
2026-10-07 20:11:59 +08:00
AoHanBei
9d25cb264e fix(github-source): refresh unchanged sync state (#1490) 2026-10-07 20:11:49 +08:00
Bingxi Zhao (Frank)
f07029cfcf release: v1.6.13
Ship the reading, listening, question-bank, parsing, and provider updates
summarized in assets/releases/ver1-6-13.md.

Make speech timeouts configurable, report actionable synthesis failures,
and keep chat attachments discoverable in their selected workspace while
preserving earlier uploads and URLs. Keep reply playback cancellation and
single-audio ownership intact.

Sync README prose and all eleven translations, update the stable install
note, and archive release notes older than one week. Repair stale reading
test fixtures and spawned test imports, and clear the Partner type error.

Validation: 9252 Python tests and 8 subtests passed (28 skipped); 518 web
unit tests, 1253 Node tests, and 62 browser audits passed. Pre-commit, ruff,
typecheck, contracts, architecture, i18n, production build, route budgets,
and the docs build passed.
v1.6.13
2026-10-04 21:35:00 +08:00
Bingxi Zhao (Frank)
fe003ddce5 fix(rag): retain textbook figures beyond the model image budget (#1610) 2026-10-04 18:39:02 +08:00
Bingxi Zhao (Frank)
428287fb16 fix(parsing): preserve failed MinerU attempts and usable outputs (#1612) 2026-10-04 18:38:56 +08:00
Bingxi Zhao (Frank)
aa498ff704 fix(tests): normalize Windows paths in web contracts (#1696) 2026-10-04 18:22:49 +08:00
Bingxi Zhao (Frank)
8ccca47bac fix(reading): track EPUB text progress within chapters (#1673) 2026-10-04 18:20:29 +08:00
Bingxi Zhao (Frank)
ed3f9e9b4e fix(chat): distinguish unconfirmed replies from expired questions (#1648) 2026-10-04 18:14:40 +08:00
Bingxi Zhao (Frank)
4d7b080fbe fix(knowledge): reuse catalog probes without blocking the API (#1711) 2026-10-04 18:04:10 +08:00
Bingxi Zhao (Frank)
8ed5fe040e test: synchronize session restoration and turn cleanup 2026-10-04 16:21:59 +08:00
Bingxi Zhao (Frank)
8133668d34 test(rag): isolate image captions from persistent workspace caches 2026-10-04 16:12:24 +08:00
Bingxi Zhao (Frank)
af0777b7f5 fix(auth): resolve learner routes across lazy FastAPI routers 2026-10-04 16:05:11 +08:00
Bingxi Zhao (Frank)
0d8f4a4c87 perf(reading): defer EPUB and video marks until needed 2026-10-04 15:51:09 +08:00
Bingxi Zhao (Frank)
e91d9800ed chore(contracts): sync browser APIs after PR integration 2026-10-04 15:50:57 +08:00
Bingxi Zhao
cc9dad3c3e Merge pull request #1639 from evan188199-tech/codex/docs-one-command-install
docs(install): add one-command Docker quick start
2026-10-04 15:15:21 +08:00
Bingxi Zhao
785f4565f2 Merge pull request #1628 from evan188199-tech/codex/docs/settings-screenshots-v1-6-12
docs(web): add v1.6.12 settings screenshots
2026-10-04 15:14:59 +08:00
Bingxi Zhao (Frank)
c134833fcb fix(i18n): complete Polish translations for integrated features 2026-10-04 15:14:46 +08:00
Bingxi Zhao
c30449895e Merge pull request #1661 from ChinskiKaczynski/feat/polish-language
feat: add Polish localization
2026-10-04 15:13:29 +08:00
Bingxi Zhao (Frank)
a3c76c9d27 fix(voice): preserve math and isolate reply playback lifecycle 2026-10-04 15:13:14 +08:00
Bingxi Zhao
9d0fb9d824 Merge pull request #1557 from antmikinka/feat/tts-playback-followup
fix(voice): stop speaking asterisks and drop the play-aloud auto-play prompt
2026-10-04 15:09:37 +08:00
Bingxi Zhao (Frank)
b83592a107 Merge dev into PR #1557 and preserve integrated behavior 2026-10-04 15:09:24 +08:00
Bingxi Zhao
952e6e4215 Merge pull request #1679 from helloqhq/fix/mimo-v25-tts
fix: support Xiaomi MiMo v2.5 preset speech
2026-10-04 15:08:27 +08:00
Bingxi Zhao (Frank)
a5ad88c95f Merge dev into PR #1679 and preserve integrated behavior 2026-10-04 15:08:13 +08:00
Bingxi Zhao
0133f17b61 Merge pull request #1681 from octo-patch/octo/20261001-tts-tool-recvwLi0fA8hap
feat: add native MiniMax speech synthesis
2026-10-04 15:07:13 +08:00
Bingxi Zhao (Frank)
8b51caf055 fix(reading): isolate audio cleanup across delayed playback and unmount 2026-10-04 15:07:00 +08:00
Bingxi Zhao
90d2d06366 Merge pull request #1655 from evan188199-tech/codex/feat/reading-natural-tts
feat(reading): add material-scoped natural read-aloud audio (#1654)
2026-10-04 15:04:37 +08:00
Bingxi Zhao (Frank)
dcb157886d fix(rag-eval): discount duplicate gold and keep JSON output parseable 2026-10-04 15:04:24 +08:00
Bingxi Zhao
cae52da2e5 Merge pull request #1649 from Hi-Kung/feature/kb-retrieval-eval
feat: add kb eval command for RAG retrieval quality scoring
2026-10-04 15:03:22 +08:00
Bingxi Zhao
1d024cb8f3 Merge pull request #1675 from ZyPulse-zy/fix/multimodal-usage-estimate
fix(usage): exclude encoded image payloads from token estimates
2026-10-04 15:02:57 +08:00
Bingxi Zhao (Frank)
74e6e154de Merge dev into PR #1675 and preserve integrated behavior 2026-10-04 15:02:45 +08:00
Bingxi Zhao
36e5ea1189 Merge pull request #1659 from ZyPulse-zy/fix/image-context-budget
fix(session): budget image blocks without tokenizing encoded payloads
2026-10-04 15:01:56 +08:00
Bingxi Zhao
a8077cb69d Merge pull request #1660 from ZyPulse-zy/fix/numbered-exercise-lookup
fix(rag): resolve numbered exercises from completed parse artifacts
2026-10-04 15:01:39 +08:00
Bingxi Zhao (Frank)
eba05bc067 test(mineru): preserve normalization and slicing settings together 2026-10-04 15:01:27 +08:00
Bingxi Zhao
9abaf4702b Merge pull request #1672 from ZyPulse-zy/fix/mineru-segment-recovery
fix(parsing): restore source pages and resume MinerU slices (follow-up to #1569)
2026-10-04 15:00:51 +08:00
Bingxi Zhao (Frank)
bb70aa2253 Merge dev into PR #1672 and preserve integrated behavior 2026-10-04 15:00:37 +08:00
Bingxi Zhao
266864f91f Merge pull request #1669 from ZyPulse-zy/fix/mineru-tiny-scan-normalization
fix(parsing): add opt-in normalization for tiny scanned PDF pages
2026-10-04 14:59:16 +08:00
Bingxi Zhao (Frank)
335301bff3 Merge dev into PR #1669 and preserve integrated behavior 2026-10-04 14:59:02 +08:00
Bingxi Zhao
aee3d0bd1c Merge pull request #1670 from Mikesad/fix/mineru-local-failure-reasons
Fix/mineru local failure reasons
2026-10-04 14:57:57 +08:00
Bingxi Zhao (Frank)
be29368733 fix(rag): cache successful image batches with complete request identity 2026-10-04 14:57:45 +08:00
Bingxi Zhao
7dc41debce Merge pull request #1671 from ZyPulse-zy/perf/image-description-batching
perf(rag): add opt-in bounded image-description batches
2026-10-04 14:56:11 +08:00