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.
Ship a content workspace you choose, one exec tool for every language,
Mastery Path modes that gate its tools, and Settings that grades
readiness instead of listing faults.
Release notes: assets/releases/ver1-6-5.md
Three things from a look at the new model pages.
The next section's rule was drawn on top of the cards: the grid and the
panels below it were siblings, so the container's spacing never applied
between them.
Cards that open now look like it — a chevron in the lower right that
shifts on hover, a border and tint that lift, a press that registers.
They read as panels that happened to be clickable, which is the same as
not clickable. Search cards draw no chevron, because they have no models
to open into, so the two kinds are told apart before you click.
And the task model was wrong twice over. It asked which model should
name conversations and which should write the starting points, as if
anyone would answer those differently — both are short, frequent, and
want the same small fast model. It is one setting now. It also asked for
that model through a flat dropdown, when it is the same kind of thing as
the LLM and deserves the same shape: the catalog carries a `task`
service, so the whole provider/model editor applies to it unchanged, and
a provider already set up for chat can be brought over instead of typed
again. Empty stays the default and the common case — both calls then
resolve the LLM exactly as before, and the page says so and shows which
model that currently is.
Two tests stopped hardcoding the list of services and derive it, so the
next one to be added needs only its own test written.
Model configuration was one layer replicated seven times: every service
stored its own profile with its own credentials, so a single OpenRouter
key had to be pasted into five separate pages. Every comparable product
(Dify, Open WebUI, Cherry Studio, RAGFlow) splits this in two — a
credential entered once, then a per-purpose assignment — so this adds
that split without disturbing what already works.
Connections
A connection holds one vendor credential (api_key / api_version /
extra_headers, plus an optional endpoint override). Linking creates one
ordinary profile per service that can use it, and the credential is
mirrored down on save rather than resolved on read — so every consumer
of the catalog keeps reading self-contained profiles and a linked
profile resolves exactly like a hand-typed one. Rotating the key in one
place reaches every linked profile; deleting a connection unlinks
rather than wipes. Anyone wanting a different key per service simply
never makes a connection.
Which services a vendor can serve is derived from the six provider
tables that already exist (new `connection_targets` in GET /settings),
so the web app keeps no second copy and adding a vendor to a service
table is enough to make it connectable.
Task models
Naming a conversation and writing the three home-screen starting points
are LLM calls nobody asked for — short, frequent, and fine on a small
fast model. Both can now be pinned to their own configured model from
Settings > Models > Task models. Unpinned is the default and a true
no-op: the title still follows the turn's own model and the starters
the active one, exactly as before. A pin at a deleted profile reverts
to inheriting rather than stranding the call.
Changing the model-output language made the whole block vanish. Two causes,
and the second is the more interesting one.
The cache is keyed by language, so a switch correctly invalidates it and the
read returns nothing — but the background regeneration that would refill it was
being swallowed by the probe throttle. That interval exists because page loads
arrive in bursts and the material rarely changes between them; it is exactly
wrong when the caller already knows the cached set is unusable. A read that
finds a cache in another language now forces the probe past the interval. The
in-flight guard still applies, so forcing cannot fan out concurrent calls.
The deeper problem is that "no lines" rendered as "no slot". Every way this can
come up empty — cold cache, failed model call, re-reads that timed out, a
language just switched, no history at all — produced an identical blank space
with no way to act on it. The component now always renders its control once the
first read lands: a spinner with "finding what to explore next" while work is
in flight, and an explicit "suggest what to explore next" button whenever it is
not, which generates synchronously on click. When that returns nothing because
there is genuinely nothing to draw on, it says so rather than looking broken.
This is not the generic fallback copy that was removed earlier — that was
filler pretending to be a suggestion. This is a button that says what it does.
Two inputs, which is what this always should have been.
**L3.** The consolidated read on the learner — and in particular the
familiar/practising/unsure split in ``scope`` — is the single most useful thing
to know when proposing what to look at next, and it was not being read at all.
Now rendered through the memory parser (so footnote markers and their HTML
comments never reach the prompt) and bounded, with each slot's unspent budget
carried to the next: ``preferences`` is two lines, and its leftover is what
lets ``scope`` be shown in full. Section names pass through untranslated
because the consolidator writes them in the deployment's own language
("不确定" / "Unsure") and reading them is exactly the model's job.
**The last k activities, flat.** The per-surface quota and round-robin are
gone. What someone touched most recently is the signal; which surface it
happened on says nothing about whether they are in the middle of it. Noise is
still dropped, but now *before* the cut rather than after — placeholder titles
are the newest rows by definition, so "take k then filter" returns nothing on
an install where someone just opened three blank chats.
k defaults to 20 and is adjustable in Settings → Chat → Starting points. Per
user, not admin-gated: it changes the size of one prompt built from the
caller's own memory, not a resource anyone else shares.
**Language comes from the setting, not the caller.** The endpoint no longer
takes a language parameter; the service reads the learner's model-output
setting (Settings → Appearance), the same one the chat agent answers in. The
UI locale could resolve before settings loaded, and with one cache per user the
two would overwrite each other on every visit. This also retires the
scope+language throttle key — there is one language now, so one key.
On a real install this took the material from 5 traces to 18 plus 6k of
profile, and the proposals from "DeepTutor 这种 AI 助教如何实现启发式引导" to
"LangGraph 状态共享与竞争条件处理".
English installs got nothing. The model was answering correctly — well-formed
JSON, three grounded proposals — and every one was discarded before rendering.
The label bound was 60 characters, set while testing in Chinese, where
"LangGraph 中状态机与有向无环图的区别" says the whole thing in 20. The same
proposal in English is "How Self-Correction loops in LangGraph reduce
pedagogical hallucinations" — 72 characters, same line on screen, three times
the count. All three came back over the bound, the batch went entirely, and it
presented as a generation failure on English installs only.
Bounds are now per language for both fields. The three labels above are pinned
as a regression case, together with the assertion that the Chinese bound still
rejects them — the point is that one number cannot serve both, not that the
number should be bigger.
Found on a real install with 20+ sessions, where the slot stayed empty.
**A failed generation was cached as an answer.** One call failed shortly after
boot; the empty result was written with the fingerprint of the material it
failed on. The background pass then saw "fresh, and the material has not
changed" and skipped every retry — six hours of empty slot from one timeout.
An empty result is now only saved when it is the right answer (no material to
work from); an empty result produced despite having material is dropped, so
the next visit retries. Collecting the material once and passing it down is
what makes that distinction available.
**The throttle swallowed the language switch.** The component asked before
i18n settled, which resolves to "en" for everyone, so the cache was built in
English. The Chinese UI then asked for "zh", got nothing (a cached set in one
language is not an answer for another), and its background pass was throttled
behind the English one — for the whole interval, with a perfectly fresh cache
sitting there unusable. The throttle is now keyed by scope *and* language, and
the component waits for i18n's ready flag rather than guessing.
**The material was mostly noise.** A week's lookback plus label dedup left one
usable trace out of twenty sessions; the other two slots went to knowledge
bases the user had named "q" and "q2". Now: 30 days (dedup and per-surface caps
already bound the list, so a longer window means depth, not length), labels
under 3 chars dropped, placeholder titles dropped — those are the *newest* rows
by definition, so they were taking the budget from named work — and the brief
tells the model to skip the noise it still sees rather than build on it.
Also: the single delayed re-read assumed a model answers within 3.5s. A cold
provider does not, and the first visit is exactly when nothing is cached. Four
spaced attempts, stopping as soon as something lands.
The previous brief still produced lines that pointed *at* the traces —
"Redo the two eigenvalue questions you missed", "Pick up where Agentic RAG
retrieval left off". Those restate what the learner already knows they did.
They propose nothing to understand.
What earns a click is one step further out: read the traces for the *subject*
behind them, then name something specific about that subject worth
understanding. Same root, one jump.
Trace: [conversation, 2d ago] Agentic RAG retrieval flow
now: "How agentic RAG differs from naive RAG"
was: "Continue the Agentic RAG conversation" <- restates the trace
also bad: "Explore retrieval" <- a field, not a question
The brief now leads with that jump, shows it worked both ways, and asks for
three different *kinds* of question (a distinction, a mechanism, a why, a
boundary case) so the three do not collapse into one shape. The floor is
unchanged and still explicit: one step beyond a trace is the point, a subject
with no root in the material is invention.
The fixed fallback is gone. Its three lines named activities — exactly what
the brief now calls failure — and more importantly the whole value of this
slot is that it is about *this* learner's material; generic copy sitting there
teaches people to stop reading it. With nothing in memory, the component
renders nothing and the home screen looks as it did before. That also drops
the fixed/generated split and its i18n keys: everything rendered here is now
generated, so nothing in it goes through the translation table.
Two problems with the first pass, and they were the same problem.
The copy named activities, not subjects. "Explain a topic" fits any learner's
screen, which is exactly what makes it useless — it proposes nothing. The
model's brief now leads with concreteness and shows it both ways (BAD "Review
your notes" / GOOD "Redo the two eigenvalue questions you missed"), and the
label bound goes 40 → 60 chars because naming the actual thing costs words.
The fixed starters shown to a learner with no history got the same treatment:
they cannot name that learner's material, but they can still propose a
concrete first move.
And a specific sentence in a pill reads as a tag, not as an invitation. So the
pills are gone: one line each, left-aligned to the composer's own edge, serif,
no border or fill, with an arrow that is the only coloured thing at rest and
steps right on hover.
Note the colour is written as color-mix rather than `text-[var(--x)]/60` —
that Tailwind form compiles to nothing, and the arrow was silently inheriting
its parent's colour until this was checked against the computed style.
Three chips for the home composer, each two strings doing different jobs:
``label`` is what the learner reads, sized for a chip; ``prompt`` is what gets
sent as their own message when they click, so it is first-person and complete
— "把我上次做错的那道链式法则的题再讲一遍", not "你上次在学链式法则", which a
model can only agree with.
Reads are stale-while-revalidate. The request path does exactly one thing:
read a small JSON file. Deciding whether the material changed means walking
seven surfaces, so that lives in the background task, throttled to once a
minute per user and deduped by an in-flight map — a burst of page loads must
not become a burst of LLM calls. Regeneration is due when the material's
fingerprint moves or the set is older than six hours; the reroll endpoint
bypasses both, because there a human is waiting.
Material comes from recall, capped per surface and interleaved so the three
chips differ in kind rather than being three chat sessions. No material means
no model call at all — a new learner gets an empty list, and the client shows
its own fixed starters, which is honest about knowing nothing yet.
Partial model output is discarded whole: one lonely chip under the composer
reads as a rendering bug.
The endpoints go above dashboard's ``/{entry_id}``, which matches any single
segment and would otherwise turn /suggestions into an activity lookup.