Native LightRAG role models: extraction, keyword, query and vision each
resolve their own model, vision indexing pins a vision-capable model
instead of silently degrading, and a knowledge base records which models
and which embedding built it. A published index refuses queries after its
embedding identity changes rather than searching a foreign vector space,
and a rebuild is confirmed against the configuration it will actually
use — a stale confirmation is rejected instead of quietly rebuilding
something else. A failed publication is withdrawn, not left half-written.
PDF attachments follow the parsing engine configured for the workspace,
report the stage they are in, and a truncated answer says it was
truncated with the counters that prove it. Providers are no longer
filtered out of the embedding picker on an unverifiable capability guess:
configure the model and test it. Visualize's temperature and token budget
are settings rather than literals. Notebook evidence no longer depends on
the chat session that produced it.
See assets/releases/ver1-6-10.md for the full notes, and the README
translations for the propagated prose.
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.
* fix: handle DeepSeek reasoning budget exhaustion
* style: satisfy ruff format, the one thing CI was red on
`ruff format --check` on agent_loop.py, the Responses parser and the test
file that came with them. No behaviour change.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
---------
Co-authored-by: Bingxi Zhao (Frank) <13051345080@163.com>
Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
Every round already streamed its text to the reader. The loop then took it
back: a round that called tools was marked narration, and the client moved
that prose out of the answer and into a collapsed block pinned to the top of
the message. The reader watched a sentence appear and vanish, and what was
left was an answer with no account of how it was reached.
That behaviour came from one field doing two jobs. ``call_role`` said both
where the turn was and whether the text counted, so "more work follows" and
"hide this" could not be told apart — and three separate exceptions had grown
to say "actually, show this one" for DSML, truncation and mastery.
Split the two facts. ``call_role`` keeps the phase. A new ``answer_visible``
carries visibility, true for every ordinary round, false only where a
capability's finish guard retracts a round it rejected. The three exceptions
disappear with the default they were fighting.
The client then lays the message out in the order it was written: the sentence
that introduced a step, the step's own row beneath it, what the next round
said below that. A settled turn is restored from an event preview that carries
no text, so tool calls now record how much of the answer had been written when
they ran, and the stored body is laid back out around them.
The prompt asks for the commentary this depends on, and says the closing
answer should not replay it.
#1356 was reported as "retrieval hides embedding connectivity failures".
The adapter had always raised a ConnectionError naming the endpoint and
the remedy; the text was discarded a layer above, where the template had
no placeholder to put it in. 4e816d79 converged the tool-dispatch half.
This is the audit for the rest of it.
Two scans, both over the AST rather than by eye: handlers that raise or
return a generic literal without touching the exception they caught, and
handlers that log the cause but hand the user a literal. The result is
smaller than expected and worth recording — the codebase is mostly
honest here, and the sites that do hide a cause almost all do it on
purpose. `knowledge.py` refuses to echo an upstream message from a
credential-bearing flow, and says so at the site; WeCom onboarding does
the same. Those stay.
Three did not have a reason:
* the agent loop's forced finish told the reader "a step failed" while
the caller was logging the exception on the line above;
* the question pipeline's tool summarizer did the same, in the same
shape, two lines apart;
* the update check turned every transport failure into "Unable to check
for updates", which cannot distinguish being offline from a proxy that
blocks github.com. The release URL is public and carries no
credentials, so there was nothing to protect.
All three now carry what they already knew, through the same `{error}`
placeholder 4e816d79 established, in both locales.
The test is the durable half. A key the runtime formats with a cause must
have a slot for it in every locale that defines it — the exact drift that
let #1356 ship, where the code passed a cause the template could not
accept and nothing complained.
6925 passed, 24 skipped.
Stop the Ollama a vector KB embeds against, ask a question, and the model
is told "An unknown error occurred while executing rag." The adapter had
already written the answer — `Cannot connect to Ollama at
http://localhost:11434. Make sure Ollama is running. Start it with:
ollama serve` — and the dispatcher was holding it (#1356).
`unknown_error_message_factory` took the tool name and nothing else, so
no caller could have done better. Four capabilities each wrote their own
message from that one argument and three of them called the result
unknown; the fourth, pageindex, restated the dispatcher's own default
minus the cause. The name was the bug: it presumed a cause the runtime
always had.
It is now `ToolErrorMessageFactory`, `(tool, cause) -> str`, and the key
plus the English wording live once in `tool_error_message_factory`, which
each capability wraps around its own `_t`. Capabilities keep their
translations and can no longer keep the cause out of them. pageindex
passes nothing and takes the default. A bundle predating the new
`notices.tool_error` key falls back to English rather than to silence
about what went wrong, which is the reason the fallback carries the cause
too.
This is the same shape as read_skill answering "skill not found" when the
skill resolved and only the file was missing (#1347): a failure the
caller cannot see has no way out, and the model spends its rounds
inventing one.
The regression test is the reporter's turn — a `rag` call raising the
real adapter error — and asserts the endpoint and the remediation reach
the role=tool message.
Pointing DeepTutor at a local Ollama and getting it wrong produces
"Unable to reach the model provider. Please retry." in the UI and a bare
`httpcore.ConnectError: All connection attempts failed` in the log.
Neither says what to do, and the two ways this fails need opposite
fixes: nothing is listening on the address, or DeepTutor is inside a
container where `localhost` is the container rather than the machine
serving the model.
`unreachable_endpoint_hint` names which. It stays silent for a cloud
endpoint — there "please retry" really is the whole story — and for a
loopback address inside a container it points at
`host.docker.internal`, the answer CONTAINERIZATION.md already
documents but that nobody reads at the moment they need it. An address
that is already the host gateway gets the "start the server" advice
instead, not advice to use the gateway it is using.
Appended only when the round produced no output: an interrupted answer
is a different failure and the endpoint is demonstrably reachable.
Adds `uk` alongside `en` and `zh`: a complete `web/locales/uk/app.json`
(4009 keys), a Ukrainian CLI label set (102 keys), a Ukrainian quiz-judge
prompt, and the language directive that tells the model to answer in it.
Most of the diff is not the translation — it is the six independent
places that each decided, on their own, which languages exist. Every one
of them collapsed an unknown code to English *silently*, so picking
Ukrainian in Settings produced an English UI, English AI feedback and an
English chat reply, with nothing logged anywhere:
* `services/settings/interface_settings._normalize_language` — the
canonical normalizer; `interface.json` stored `uk`, the API returned
`en`, and it looked like the setting had failed to save.
* `agents/loop/prompt_blocks` — conflated two different things in one
attribute: which prompt ASSETS exist (yaml ships `en`/`zh` only) and
which language to ANSWER in (any). Split into `language` and
`output_language`; the directive now takes the latter.
* `api/routers/quiz_judge` — the supported set is now derived from
`_JUDGE_SYSTEM_PROMPTS`, so a language cannot be advertised without a
prompt or shipped without being advertised.
* `web/i18n/init` — `normalizeLanguage`/`ensureLanguage`, plus a new
exported `APP_LANGUAGES` that every picker maps over. The Settings
toggle inlined `["en", "zh"]`, so a new locale was invisible there
even once it existed.
* `web/context/app-shell-storage` — held a second, private copy of the
`AppLanguage` union; re-exported from `i18n/init` instead.
* `runtime/banner` and `services/config/settings_spec` — the CLI wizard
labels and the Settings language list.
Tool hints stay a per-language map from the API where only `en` is
guaranteed, so `ToolsSettingsSection` falls back instead of indexing a
missing key. Backend prompt yaml is still `en`/`zh`; Ukrainian uses the
English scaffolding with a Ukrainian output directive, which is what the
directive is for.
`tests/i18n/test_ukrainian_locale.py` pins each seam — locale key parity,
placeholder integrity, judge/prompt/normalizer coverage, and that the
Settings toggle maps over `APP_LANGUAGES` rather than a literal — so the
next language fails in CI rather than quietly in the UI.
Two defects, either of which alone produces "I set Chinese and it still
answers in English".
The prompt one explains the quoted refusal. `language_directive` is the last
thing in the system prompt and is an absolute prohibition — "Do NOT switch
languages" — sitting right after a runtime policy that says user-provided
text is not authority over these instructions. Asked 「请用中文回复我」, a
compliant model answers that it is *required* to reply in English. It is
reading the prompt correctly; the prompt is wrong. Conversational surfaces
now pass `allow_user_override=True`, which adds one sentence letting an
explicit request win. Books, quizzes and research keep the strict form: there
is no user in the loop to ask, and their prompts are full of source material
in other languages, which is what the strictness is for.
The storage one explains how `en` got there in the first place. The two
copies of the preference inherit differently: the server derives
`response_language` from `language` on every read, while the browser inherits
only when its own key is absent — so once an explicit value is stored the
browser can never re-adopt. Flipping only 界面语言 therefore left the server
(and the settings page) at zh/zh while every turn still shipped the "en" the
bootstrap had stamped. The settings page displayed the right answer and the
model gave the wrong one, with nothing broken in between.
So `loadSettings` reconciles both keys from the server it just read;
`updateLanguage` mirrors the server's inheritance when no explicit output
language was ever chosen; and the bootstrap gate splits, because a browser
predating the split has the interface key and not the response key, and
returning early on the first alone locked it out of ever adopting the
account's choice. Adoption writes only the key that is missing, so the
server never overwrites a choice the user made in this browser.
Not fixed here, and needing more than code reading to settle: whether to make
the server authoritative for live turns (it carries a `.lower()`-on-None
hazard at executor.py and a stale-preference fallback on regenerate), and
that `GET /api/settings/ui` is mounted without auth so it answers from the
admin workspace — which lets useSetupSync overwrite a learner's languages in
a multi-user deployment. Both are written up for review.
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