11 Commits

Author SHA1 Message Date
Bingxi Zhao (Frank)
ce4434e75a fix(workspaces): reuse knowledge references in selective conversation moves
Fixes #2289
2026-11-15 01:42:46 +08:00
wangkai
d52fb366c3 fix(workspace): read migration state files as UTF-8
The migration journal, PocketBase snapshot, presentation items and
dependency-closure documents are written as UTF-8 by atomic_write_json()
but were read through the locale default. On Chinese Windows (cp936)
non-ASCII names raise UnicodeDecodeError or come back as mojibake, so
workspace migration/preview can fail or copy wrong values.

Read them with file_io.read_text(), which uses the writers' encoding and
the same bounded PermissionError retry as the write side.
2026-10-29 13:33:13 +08:00
Bingxi Zhao (Frank)
399297e7f0 feat: preserve TypeScript engine migration and workspace updates 2026-10-18 23:09:10 +08:00
Bingxi Zhao (Frank)
e49f518669 Reconcile user setup and provider changes with all reviewed PRs 2026-10-07 20:54:24 +08:00
Bingxi Zhao (Frank)
844c8f0a22 fix(workspace): retain corrupt migration journals as recovery blockers 2026-10-07 20:39:30 +08:00
Bingxi Zhao (Frank)
f8be756906 Integrate saved user workspace changes with reviewed dev updates 2026-10-07 20:37:55 +08:00
evan188199-tech
f94f9869a8 fix(workspace): surface unreadable migration journals and skipped corrupt sources (#1708)
* fix(migration): scope unreadable-journal rejection to migration paths

operations() skipped corrupted operation.json files, so
assert_no_pending_recovery() could not see their status and new
migrations could start while a recovery was still pending. The first
fix rejected unreadable journals in the shared precheck, which every
non-settings request runs - one corrupt file locked the whole app.

Unreadable journals now only fail migration-class callers
(migrate_data, export_data, move_kb, session adoption, and the router's
exclusive branches) via reject_unreadable=True, naming the full journal
path. Normal requests keep working. operations() lists unreadable
journals as status="unreadable" so Settings -> Data migration shows
them, and recover_operation quarantines an unreadable journal
(operation.json.corrupt) instead of crashing, which clears the blockage
while keeping snapshots for inspection.

* fix(workspace): surface skipped corrupt sources in migration dependency closure

Corrupt book manifests, feature documents, and message metadata were
silently skipped while computing the migration dependency closure, so
moved workspaces could silently miss sessions and references. Each skip
now logs a warning (path or session id only) and is returned to callers
via the optional warnings list, which migration preview exposes as a
warnings field. Skip/closure behavior itself is unchanged.

* fix(migration): point the unreadable-journal error at the Recover action

* 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>
Co-authored-by: Bingxi Zhao (Frank) <13051345080@163.com>
2026-10-07 20:37:16 +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
krxi
2eb2f2de96 feat: add a workspace-scoped task board 2026-09-24 16:10:03 +03:00
Bingxi Zhao (Frank)
1fe74df0ed fix(notebook): decouple evidence from chat sessions (#1519) 2026-09-21 14:50:02 +08:00
Bingxi Zhao (Frank)
da856ad670 release: v1.6.9
Ship folder-based workspaces and data migration, daily practice, redesigned
provider and model settings, and streaming conversation improvements.
Synchronize README translations and document the archive/permanent-delete
upgrade behavior in assets/releases/ver1-6-9.md.

Reduce initial JavaScript by deduplicating English resources and loading
animation features after hydration. Keep the existing route size budgets.
Update regression fixtures and browser audits for scoped URLs and the new
settings and learning interfaces.
2026-09-21 02:30:40 +08:00