Translate only an actual active-SHA uniqueness conflict into a safe 409 response. Preserve both records and their bytes so restoring the earlier entry can be retried after deleting the replacement; unrelated database failures still propagate.
AI-assisted: implemented and validated with OpenAI Codex; isolated API and real SQLite constraints, no user workspace writes.
Add a complete Japanese web catalog (web/locales/ja/app.json, every key
of the English catalog) and register "ja" wherever the other interface
languages are listed: the web language registry and loader, date
formatting, the backend UI-language setting and launch settings, and the
generated API contracts. Each existing catalog gains language.japanese.
Japanese was already a reply language; this makes it an interface
language too, following the Polish integration.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Creating an account through the admin UI means the administrator picks the
password, so the owner starts life with a secret someone else knows. Nothing
in the UI said so: the password form existed, but nobody was sent to it.
- identity: accounts carry must_change_password, set on admin creation and
cleared once the owner changes the password themselves
- POST /login returns the flag so the client can act on it right away
- GET /profile exposes it for the profile page
- web: after login, a flagged account goes straight to /profile, which shows
why; the banner disappears once the change succeeds
Backend tests cover both directions: a successful change clears the flag, a
failed one (wrong current password) leaves it alone.
Persist a structured selection_source beside the assistant prompt, and use
the legacy sidebar prompt's containing message, role and selection to
disambiguate repeated text. Scan every user message for a quote, refuse to
guess between several, and make the backfill conditional so a concurrent move
or detach wins.
Serialize PocketBase preference merges with a lock that spans event loops,
not one asyncio lock per loop, and validate client-supplied anchors on turns
and organization updates. Detach threads when the message they point at is
deleted.
quoted_message_id now follows the create_target rule: the key's presence
is authoritative. A value moves the thread, an explicit null clears it,
and omitting the key leaves the stored anchor untouched. A new selection
moves the thread to the passage just asked about.
The message-level popover gains a detach action that clears the anchor
through the organization PATCH without deleting the conversation, and a
deliberate clear also stops the legacy backfill from re-attaching it.
Threads created before the attribution existed kept only the passage:
selection threads store it in tutor_selected_text, newer side chats as a
quote attachment. Match that passage against the parent transcript with
the Markdown projection selection grounding uses, and record the source
only when exactly one message contains it.
The scan is recorded per thread and runs when the thread list is read,
so it happens once; touch=false keeps the thread's place in the list.
Two gaps surfaced while running DeepTutor for a staff roster:
1. No endpoint changed a password. The service layer already had
identity.set_password(), but nothing exposed it, so an account whose
password was lost could only be fixed by editing users.json by hand.
- PUT /api/auth/profile/password (self-service, verifies the current
password so a stolen session alone cannot take the account over)
- PUT /api/auth/users/{username}/password (admin reset, require_admin)
2. The username validator only accepted [A-Za-z0-9_-.]{3,64}, so real
names such as 于冬阳 were rejected — with an error message that said
'enter a valid email address', which pointed at the wrong problem.
CJK-only names now allow two characters (张伟) where Latin usernames
still require three (abc); the message names both accepted forms.
The lazy router index and pip --report plan.json are written as UTF-8,
but were read with the locale default; build_router_index.py now writes
UTF-8 explicitly so the read and write sides share one contract.
After each reply the chat composer shows a predicted next line as its
placeholder, and Tab accepts it. When the assistant has just asked a
question, such as a quiz in chat, the likeliest next line is the answer,
so the hint gives it away. There was no way to turn it off.
Add an `ask_hint_enabled` switch to the per-user starter settings
(Settings -> Conversation -> Composer), on by default. When it is off,
`get_ask_hint` returns an empty hint before reading the session or the
cache, so no LLM call is made and no line cached while it was on leaks
through.
A PUT that omits the field keeps the stored value, so an older client or
a settings draft saved before this change cannot turn the hint back on.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Register the CloudGPU provider spec, settings and runtime tests, and the official site icon.
Co-authored-by: CloudGPU <mrhy7176@users.noreply.github.com>
Earlier locales stopped at the settings lists, so these surfaces kept answering in English for them: the init wizard labels, quiz feedback, explicit book-language requests, book overview and export scaffolding, the partner and book language pickers, and the voice language list.
Registers tr in every list that decides which languages exist: the reply-language whitelist and labels, the interface and launcher normalizers, the Settings choices, the web registry and lazy loader, the date locale, the response-language store and the API contract.
Editing a persisted message and resending a saved failed turn both replayed
the failed turn's saved request verbatim, so the new turn silently ran on
the previous model and the previous reply language.
- An edit keeps the original request's context (attachments, references,
parent, capability, tools, config) but takes the model and the reply
language from the current session state (#2106).
- A Resend of a saved failed turn sends the current model and reply
language in the regenerate overrides. The backend already prefers those
over the saved snapshot, and the recovered model is now written back to
the conversation, so the choice survives a reload (#2105).
- An unconfirmed submission is still retried with its own parameters: the
server may already hold that submission id, and a changed request would
no longer match it.
A failed GET /api/settings left Appearance on "system". Applying any
later UI change wrote that placeholder and replaced an explicit local
palette.
Seed the form from the stored preference, and omit theme from Apply
until the server has confirmed one.
The first visit stored the detected palette and never listened for
prefers-color-scheme changes, so the theme stopped tracking the OS and
Settings had no System choice.
Do not write that fallback. Subscribe while the preference is missing or
"system", and add a System option in Appearance. New accounts default to
system so Apply does not freeze the snow palette.