Commit Graph

463 Commits

Author SHA1 Message Date
evan188199-tech
50a3ba4e4d fix(knowledge): surface swallowed KB status, progress and folder-sync failures (#1706)
* fix(knowledge): make update_kb_status write failures observable

The ready-transition metadata refresh swallowed every exception
(`except Exception: pass`), and a kb_config.json persist failure
surfaced only as an opaque raise inside fire-and-forget callers, so
a lost status update left the persisted KB state stale with no
diagnostic.

- Log a warning naming the KB when the best-effort ready-transition
  metadata refresh fails, instead of silently passing.
- Log an error with the KB name and status when persisting the
  config fails, then re-raise so callers still receive the exception
  (the write is authoritative, not best-effort).

Tests: a persist failure is logged and re-raised; a metadata refresh
failure is logged and does not propagate.

* fix(knowledge): make progress WS failures visible instead of silent

The websocket_progress endpoint swallowed five failure points with
`except Exception: pass`: timestamp parsing (x2), error-frame delivery,
socket close, and user-context reset. A corrupt progress snapshot or a
broken teardown path therefore vanished without a trace.

- Share a _progress_age_seconds helper for both freshness checks: narrow
  the catch to (TypeError, ValueError), keep the inactive/stale fallback,
  and log unparseable timestamps at warning level.
- Reuse the already-parsed snapshot age in the replay decision, so one
  corrupt timestamp warns once per connection instead of once per
  freshness check.
- Trace failed error-frame delivery and failed close at debug level
  (usually an already-disconnected client, not a fault).
- Log a failed reset_current_user at warning level: leaking the user
  context is a real fault, not a disconnect.

Tests: malformed timestamp degrades with a warning; cleanup failures are
logged and never propagate; normal disconnects stay silent.

* fix(knowledge): stop swallowing a failed reindex error-progress write

The reindex failure path wrapped its ProgressTracker ERROR update in
`except Exception: pass`, so when that write itself failed the rebuild's
failure alert disappeared and the KB progress view silently stayed stale.
Log a warning instead; the task-level error status remains authoritative.

* fix(knowledge): log folder sync state recording failures

update_folder_sync_state() swallowed per-file mtime recording errors
with 'except Exception: pass', so a file whose state could not be
recorded silently degraded the persisted sync state while last_sync
still advanced. Log the failure at WARNING and keep the un-recorded
fallback so the next scan re-syncs the file.

* test(codebuddy): make credential fixture expiry relative to now

test_load_credentials_parses_session wrote a hard-coded expiresAt of
1791055241000 (2026-10-03 15:40:41 UTC) and asserted is_expired() is
False. Once that instant passed the assertion flipped, so the test now
fails on every Python version for every branch.

Derive expiresAt / refreshExpiresAt from time.time() so the fixture
always describes a live session, and assert against the value written.

---------

Co-authored-by: XZH <cto@xzh.ai>
2026-10-07 20:22:32 +08:00
evan188199-tech
70d65c0029 fix(api): warn when a deferred tool's definition fails to load (#1731)
* fix(api): warn when a deferred tool's definition fails to load

build_tool_options swallowed get_definition() errors on deferred (MCP)
tools with a bare continue, so a broken tool silently vanished from
the options surface with no trace of why it was unavailable. The skip
now logs a warning naming the provider and adapter class plus the
failure reason; enumeration of the remaining tools is unchanged.

* style(api): ruff-format deferred tool definition warning changes

---------

Co-authored-by: XZH <cto@xzh.ai>
2026-10-07 20:22:03 +08:00
KennySimpson
8dce2550b2 fix(mastery-path): allow editing legacy objective counts (#1790) 2026-10-07 20:20:29 +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.
2026-10-04 21:35:00 +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)
4d7b080fbe fix(knowledge): reuse catalog probes without blocking the API (#1711) 2026-10-04 18:04:10 +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
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)
bb70aa2253 Merge dev into PR #1672 and preserve integrated behavior 2026-10-04 15:00:37 +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 (Frank)
232f720e90 Merge dev into PR #1671 and preserve integrated behavior 2026-10-04 14:55:52 +08:00
Bingxi Zhao (Frank)
2700105923 Merge dev into PR #1664 and preserve integrated behavior 2026-10-04 14:41:40 +08:00
Bingxi Zhao
ab52f95cc3 Merge pull request #1640 from evan188199-tech/codex/co-writer-model-selection
feat(co-writer): support model selection for edits (#661)
2026-10-04 14:27:08 +08:00
Bingxi Zhao (Frank)
c160ad5cf7 Merge dev into PR #1645 and preserve integrated behavior 2026-10-04 14:26:07 +08:00
Bingxi Zhao (Frank)
dfeb2fb4f3 Merge dev into PR #1657 and preserve integrated behavior 2026-10-04 14:22:45 +08:00
Bingxi Zhao
002dbc34ee Merge pull request #1685 from evan188199-tech/codex/fix/mastery-session-lock
fix(session): stop waiting turns before deletion (#1646)
2026-10-04 14:19:37 +08:00
Bingxi Zhao
2f62ab1d71 Merge pull request #1625 from evan188199-tech/codex/fix/workspace-subagents
fix(workspace): preserve shared subagent access (#1613)
2026-10-04 14:17:27 +08:00
Bingxi Zhao
cab53cb98d Merge pull request #1662 from larryluozhang/fix/learner-workspace-surface
fix(learner): allow own-scope settings and workspace writes via route templates
2026-10-04 14:17:07 +08:00
Bingxi Zhao (Frank)
864bdd934f Merge dev into PR #1652 and preserve integrated behavior 2026-10-04 14:16:25 +08:00
Bingxi Zhao
412fdf4dd0 Merge pull request #1651 from evan188199-tech/codex/feat/learner-assigned-books
feat(learner): expose assigned interactive books
2026-10-04 14:15:04 +08:00
Bingxi Zhao (Frank)
33f2f2b4b0 fix(auth): allow learner knowledge list proxy reads 2026-10-04 14:14:52 +08:00
Bingxi Zhao
f56dfb476e Merge pull request #1599 from dxhome/codex/fix-knowledge-list-proxy
fix: knowledge base listing through proxy
2026-10-04 14:13:31 +08:00
XZH
7cf2fc94a3 fix(session): stop waiting turns before deletion 2026-10-01 09:15:57 -07:00
ZyPulse
056e6a8172 fix(parsing): restore source pages and resume completed MinerU slices 2026-09-30 10:07:37 +08:00
ZyPulse
e702f9c72e perf(rag): add opt-in bounded image-description batches 2026-09-30 09:56:33 +08:00
ZyPulse
1220a8e552 fix(parsing): add opt-in normalization for tiny scanned PDF pages 2026-09-30 09:40:43 +08:00
ZyPulse
cbb742a141 feat(parsing): select an independent image description model 2026-09-30 00:01:29 +08:00
XZH
cd474bc824 feat(reading): add server-owned quiz star rewards (#1656) 2026-09-29 06:17:54 -07:00
XZH
eeb360f66a feat(reading): add material-scoped natural read-aloud audio (#1654) 2026-09-29 05:56:41 -07:00
XZH
f5cfe969d3 fix(learner): expose assigned reading library 2026-09-29 02:24:47 -07:00
XZH
c90fe4d047 feat(learner): expose assigned interactive books
Closes #1650
2026-09-29 02:14:47 -07:00
XZH
7e45ab851e feat(video-learning): add timestamped watching marks
Co-authored-by: multica-agent <github@multica.ai>
2026-09-28 21:27:04 -07:00
XZH
0541549ef3 feat(co-writer): support model selection for edits 2026-09-28 19:02:48 -07:00
XZH
0e260130be feat(web-source): add bilingual source pairing (#902)
Add bilingual page pairing and language variant alignment for web sources:
- Detect page language variants via hreflang alternate links and URL language prefix patterns.
- Record pairing relations in durable SQLite repository and KB web-source metadata.
- Expose pairing relations via GET /api/knowledge-bases/{kb_name}/web-source/{source_id}/pairings and WebSourceInfo.
- Display bilingual pairing indicator in the KB web sources section with localization across en, zh, de, fr, uk.
- Add targeted tests for pairing detection, repository persistence, and API exposure.

Co-authored-by: multica-agent <github@multica.ai>
2026-09-28 14:58:51 -07:00
XZH
1240d5e294 fix(workspace): preserve shared subagent access 2026-09-28 08:17:00 -07:00
larryluozhang
1168103a43 fix(learner): allow own-scope settings and workspace writes via route templates
Follow-up to #1323 (which merged as the prefix surface map): three
learner-blocking gaps remained, and all three sit on URL prefixes that
also host admin-grade operations, so they are matched on the resolved
route template — the same pattern as _LEARNER_KB_READ_ROUTES.

- PUT /api/settings/ui — theme/language save into the caller's own
  per-user interface.json; learners currently get 403 changing language.
- PUT/DELETE /api/settings/draft — the settings UI saves through a
  per-user draft document; catalog apply stays admin-gated in the
  endpoint itself.
- /api/settings/workspace self-management — PUT root (select current
  binding), POST /validate, POST /registrations, PATCH
  /registrations/{id}. Data migration/export/root-migration/snapshot
  routes under the same prefix stay default-denied: they move data
  across scopes and carry no internal admin gate.
2026-09-28 13:19:09 +08:00
Bingxi Zhao (Frank)
176257b1f8 style: format knowledge source integrations 2026-09-27 11:15:15 +08:00
Bingxi Zhao (Frank)
a824e4b01f fix(knowledge): preserve moved KB retrieval and scoped jobs 2026-09-27 11:04:33 +08:00
Bingxi Zhao (Frank)
b0385a315d feat(knowledge): choose storage and move individual bases 2026-09-27 11:04:33 +08:00
Bingxi Zhao (Frank)
64c2316093 Add connected Kiwix ZIM knowledge sources 2026-09-27 11:01:04 +08:00
Bingxi Zhao (Frank)
5e7be659a2 Preserve retrieved source visuals for vision answers 2026-09-27 10:57:00 +08:00
Bingxi Zhao (Frank)
469f1e096b fix(turns): suppress answered PocketBase worker-loss retries (#1570) 2026-09-27 10:17:15 +08:00
Bingxi Zhao (Frank)
3a0ed2b560 fix(turns): surface and retry orphaned worker loss (#1570) 2026-09-27 04:55:15 +08:00
Bingxi Zhao (Frank)
e02c82bdf0 fix(update): refuse in-app handoff inside systemd services (#1555) 2026-09-27 04:52:21 +08:00
Bingxi Zhao (Frank)
550268e1e3 fix: support Malay as a persistent reply language 2026-09-27 04:37:15 +08:00
Bingxi Zhao (Frank)
75aa71ae5b Merge remote-tracking branch 'origin/dev' into codex/pr-1567-review 2026-09-27 02:58:27 +08:00
Bingxi Zhao
848037549c Merge pull request #1580 from krxi/codex/task-board
feat: add a workspace-scoped task board
2026-09-27 02:35:23 +08:00
Bingxi Zhao (Frank)
7dd1f7f046 fix: allow learner task board through chat surface 2026-09-27 02:25:51 +08:00
dxhome
2fb4d89771 fix: knowledge base listing through proxy 2026-09-26 13:20:13 +08:00
Philipp Eisbacher
9b139a772f feat(i18n): add German as a full interface language
Adds `de` alongside en/zh/fr/uk, following the seams the Ukrainian locale
established: the interface-language normalizers (settings + launcher), the
Settings language list, APP_LANGUAGES / normalizeLanguage, the lazy bundle
loader, the date locale, the CLI banner labels, the quiz-judge prompt and
the i18n audit's required locales. German already existed as a reply
language; this makes it selectable for the UI as well.

`web/locales/de/app.json` covers all 5200 English keys (audit: 3850/3850
used keys, strict). `language.german` is added to every catalog.

Tests: `tests/i18n/test_german_locale.py` pins each seam, and
`web/tests/german-locale-quality.test.ts` guards terminology (informal
"du", one term per concept, no context-free machine translations such as
"Lappen" for RAG). Three existing tests used `de` as their example of an
unsupported language; they now use `xx`.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-24 22:00:58 +02:00