Commit Graph

16 Commits

Author SHA1 Message Date
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
Bingxi Zhao (Frank)
9f3990463f fix(chat): let the closing answer stream where it will stay
Where a turn's prose was placed was gated on the same "this round was the
terminal one" signal that decides whether to fold the working-out away. So
the closing answer streamed INSIDE the collapsible process and hopped out of
it once the round finished.

That gate could never have been satisfied in time. A round only reveals
whether it called tools after its prose is complete, so for the whole length
of the answer the reader watched it arrive dressed as reasoning, in a region
whose whole promise is that it holds things not worth reading.

Placement is structural now — whatever is being written is the answer — and
only the fold still waits for the terminal round. That inverts which case
pays: commentary is demoted into the process when its round turns out to
have called a tool, costing one 14px slide at the moment the tool row
appears under it, and the text the reader came for never moves at all.
2026-09-11 18:12:27 +08:00
Bingxi Zhao (Frank)
895d2cce25 fix(web): stop the copy button reporting a success that never happened
The button inferred success from its handler's promise *resolving*, and the
handler it was given could not fail: `copyAssistantMessage` awaited
`navigator.clipboard.writeText` inside a try/catch that logged and swallowed.
So the only failure signal was destroyed one frame before the only code that
could have used it — and every clipboard failure rendered 已复制 with a
checkmark. Because the label is also the `aria-label` on an `aria-live`
element, the false success was announced to screen readers.

The failure is not exotic. `launcher.py` binds the web app to 0.0.0.0 while
printing a localhost URL, so opening the same instance from another machine
on the LAN is an ordinary way to run DeepTutor — and on that plain-http
origin `navigator.clipboard` does not exist, so reading `.writeText` throws
synchronously. `FilePreviewDrawer` already carried a comment naming this
exact cause; the handling was local instead of shared.

So: one `copyText` helper that rejects when the text did not reach the
clipboard, with a selection-based fallback for insecure origins (probed
before any await, since `execCommand` needs the click's user activation);
`CopyActionButton` narrowed to a `Promise<void>` handler and given a real
failure state, so the contract cannot be reintroduced by the next consumer;
and the three consumers plus the two other optimistic sites moved onto it.

`Promise.resolve().then(() => onCopy(...))` replaces
`Promise.resolve(onCopy(...))` because the latter runs the handler outside
the chain, which is where the synchronous TypeError was escaping.

Also adds the `attachments` and `references` locale keys. Both call sites
pass a lowercase noun for inline reading, neither key existed, and i18next is
configured to return a missing key verbatim — which is why a Chinese UI
rendered "5 attachments" in English next to this very button.
2026-09-08 00:22:08 +08:00
Bingxi Zhao (Frank)
93df3d48b7 release: v1.6.4
Ship lighter isolated runtimes, richer Books and Mastery flows,
Reading/session polish, and explicit model API capabilities.

Release notes: assets/releases/ver1-6-4.md
2026-09-03 01:38:54 +08:00
Bingxi Zhao (Frank)
6e6e56aedb release: v1.6.3
Ship the breaking front- and back-end runtime and route refactor,
learner and guardian flows, grounded reading, knowledge and parser
updates, and recoverable long-running streams.

Release notes: assets/releases/ver1-6-3.md
2026-09-02 04:09:11 +08:00
Bingxi Zhao (Frank)
fc39543bc0 feat: integrate frontend backend and canonical routes 2026-09-01 22:24:29 +08:00
Bingxi Zhao (Frank)
23a5e0601d chore(web): enforce v2 frontend release gates 2026-09-01 21:18:47 +08:00
Bingxi Zhao (Frank)
bfdf874a10 refactor(web): remove v1 chat transport and legacy surfaces 2026-09-01 20:16:46 +08:00
Bingxi Zhao (Frank)
2299fe86a0 refactor(web): split co-writer workspace responsibilities 2026-09-01 19:12:35 +08:00
Bingxi Zhao (Frank)
ace0bcf316 feat(web): expose safe multi-worker runtime health 2026-09-01 18:31:20 +08:00
Bingxi Zhao (Frank)
f63e29c7c5 refactor(web): split chat message and trace presentation 2026-09-01 18:23:31 +08:00
Bingxi Zhao (Frank)
68bb0d108d feat(web): unify turn lifecycle feedback 2026-09-01 18:13:58 +08:00
Bingxi Zhao (Frank)
cd009c29ce feat(web): establish accessible design primitives 2026-09-01 18:08:17 +08:00
Bingxi Zhao (Frank)
4910fcd005 refactor(web): reduce chat route to feature composition 2026-09-01 17:52:20 +08:00
Bingxi Zhao (Frank)
422ac501e5 refactor(web): add selector-based chat store 2026-09-01 17:41:11 +08:00
Bingxi Zhao (Frank)
e56cc8464c test(web): add rendered component test harness 2026-09-01 16:18:33 +08:00