Add Hindi (hi, हिन्दी) to the reply-language contract, following step 4
of docs-for-dev/I18N.md and the earlier Malay change (550268e1):
- SUPPORTED_RESPONSE_LANGUAGES, the settings router's ResponseLanguage,
the prompt-language label and the settings-spec reply choices;
- "hindi", "हिन्दी" and "हिंदी" aliases in the backend and web
normalizers (hi-IN and hi_IN resolve through the base code);
- the web ResponseLanguage type, isResponseLanguage() and
RESPONSE_LANGUAGE_OPTIONS, which the partner picker shares;
- regenerated frontend contracts, and tests mirroring the Malay change.
The interface language is unchanged: no web catalog or picker entry.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The paths underneath the providers. A batch upload that stalled every other
request, a knowledge-base list that rescanned every index, a tool call
dispatched with no arguments and retried until the budget ran out — plus two
things that were quietly missing.
- Every account can sign in to its own Codex. The token authorizes one
person's ChatGPT plan so the profile was correctly never grantable, but the
OAuth endpoints were admin-only too, leaving ordinary users no route at all.
A sign-in now publishes into the OWNER's catalog
(data/users/<uid>/settings/model_catalog.json), keyed by the same owner
resolution as the credential store; redacted_model_access gains those
personal rows for the caller's own id only, so the option list, capability
gate and selection validation cannot disagree. Partners are refused.
- Model output language is its own setting. Settings -> Appearance carries two
independent toggles; resolve_languages() in interface_settings.py owns the
legacy migration (a pre-split file inherits its single `language` into both),
and both readers go through it. GET /settings/ui is public so /login and
/register can bootstrap before a session, projected down to theme+language.
- A tool call with empty `arguments` is rejected in front of dispatch instead
of run. The tool used to do the rejecting ("requires a non-empty command",
"Unknown mode ''"), which does not read as a missing argument, so the model
re-emitted the same call until the loop budget ran out. The guard names the
missing arguments and their accepted values, enums included.
- Batch uploads move off the event loop (the chunked write, zip extraction and
per-file PocketBase upload ran inline; the staging pass sat in an async
BackgroundTasks entry, which starlette awaits ON the loop). KB listing reuses
one reconciled snapshot instead of reloading config and rescanning every
index per item.
- Deep Research mounts the read-only Obsidian tools instead of rag for a linked
vault, injects the vault path server-side, and treats their evidence as
citable.
- The server-side backend address is the IPv4 loopback on all three paths
(launcher, Docker entrypoint, web/proxy.ts default): `localhost` resolves to
::1 first on a dual-stack host while uvicorn binds 0.0.0.0.
- Escape stops a streaming Partner reply and bails while any dialog overlay is
mounted; vision overrides match `claude-` by vendor prefix and recognize Kimi
K3 and Qwen3.8-Max; Codex context-window metadata survives the catalog round
trip; editing a message no longer races its refresh; the deeptutor-cli wheel
ships the agents' prompt YAML again and prompt misses are no longer cached.
Also fixes the `ruff format --check` failure red on dev since 6cd55939, and
syncs the README prose, all ten translations, and the release-notes archive.
* feat: separate UI and model response languages
* refactor(settings): keep one owner for the interface.json language rules
The legacy migration — a file written before the UI/response split
inherits its single language into both fields — had been duplicated into
both readers of interface.json, as had the theme/language defaults. Two
copies of a migration rule drift.
Move the rule into resolve_languages() in the module that owns the file,
have the router compose its superset of defaults on top of the service's,
and cover the agreement with a test that reads one legacy file through
both paths. The helper also drops the separate key-presence check:
_normalize_language already falls back to its default for missing, null
and unrecognized values alike.
* fix: keep the language bootstrap single and local-choice-first
Merging dev surfaced three collisions this branch had not seen:
- The new bootstrap fetched /settings/ui unconditionally and overwrote
writeStoredLanguage on every mount, undoing #730's rule that a choice
made in this browser is the more specific signal and must win. Folded it
into the existing guarded effect so one fetch serves both language
fields and neither can clobber a local selection.
- apiFetch/apiUrl ended up imported twice in AppShellContext, which git
merged without a conflict and tsc rejects outright.
- Three tests still stubbed get_ui_language at call sites that now ask for
get_response_language: the question router's stand-in module and two
mastery_path patches (renamed the zh case to say response language).
* fix(api): include response_language in the pre-session UI read
The bootstrap adopts both languages from this one endpoint, so leaving
response_language out of the projection meant a fresh browser always
inherited the interface locale and never saw the saved output-language
preference. It belongs with the other two: all three are the visitor's
own presentation choices, none describe the deployment.
---------
Co-authored-by: Bingxi Zhao (Frank) <13051345080@163.com>