Commit Graph

397 Commits

Author SHA1 Message Date
Bingxi Zhao (Frank)
84de213aa2 Merge commit '81ab035e0370bd125592ecfaf7f867240081ddad' into codex/validate-reviewed-integration
# Conflicts:
#	tests/api/test_settings_router.py
2026-10-31 18:53:28 +08:00
Bingxi Zhao (Frank)
def8bdc8c6 Merge commit '1876207b5c248eb4ee4375e34779ed332a11d284' into codex/validate-reviewed-integration 2026-10-31 18:52:30 +08:00
Bingxi Zhao (Frank)
81ab035e03 Merge dev preserving CloudGPU and LLMTR provider integrations 2026-10-31 18:36:30 +08:00
Bingxi Zhao
aaaa7420ac Merge pull request #2156 from knowhycodata/add-llmtr-provider-dev
feat(providers): add LLMTR as an OpenAI-compatible gateway
2026-10-31 18:30:49 +08:00
Bingxi Zhao (Frank)
4d7090447e Integrate Turkish across complete locale chain, runtime messages and desktop shell 2026-10-31 18:14:34 +08:00
Bingxi Zhao (Frank)
b611c7a690 Integrate current dev and preserve complete locale coverage 2026-10-31 18:08:16 +08:00
Bingxi Zhao (Frank)
88b45d524d Integrate account typography with shared reply languages and current settings validation 2026-10-31 17:59:13 +08:00
Bingxi Zhao (Frank)
8f0a8ffd55 Merge reviewed integration chain and refresh knowledge router index 2026-10-31 17:53:57 +08:00
Bingxi Zhao (Frank)
55d92345bb Merge reviewed locale and settings fixes into password changes 2026-10-31 17:41:54 +08:00
Bingxi Zhao
eff1d98ce4 Merge pull request #2213 from Rimcat-JA/feat/i18n-japanese
feat(i18n): add Japanese as an interface language
2026-10-31 17:38:39 +08:00
Bingxi Zhao (Frank)
fbab6f6a08 Merge reviewed PR #2174 and regenerate routing contracts 2026-10-31 17:37:43 +08:00
Bingxi Zhao (Frank)
c836ca354d Merge reviewed locale chain and preserve Vietnamese shared language selection 2026-10-31 17:32:10 +08:00
Bingxi Zhao (Frank)
b684df296d Merge reviewed French locale integration and refresh hint toggle contracts 2026-10-31 17:28:14 +08:00
Bingxi Zhao (Frank)
d002053ab9 Merge dev and refresh the API routing index 2026-10-31 17:26:35 +08:00
Bingxi Zhao (Frank)
42cf57bf96 fix(auth): scope password changes and expose temporary-password state 2026-10-31 17:15:58 +08:00
Bingxi Zhao (Frank)
1665df6936 Merge remote-tracking branch 'origin/dev' into codex/land-2179
# Conflicts:
#	web/locales/de/app.json
#	web/locales/en/app.json
#	web/locales/fr/app.json
#	web/locales/pl/app.json
#	web/locales/uk/app.json
#	web/locales/zh/app.json
2026-10-31 17:13:11 +08:00
Bingxi Zhao
e1ab417bad Merge pull request #2128 from 0x-IHRR/feat/math-animation-file-actions
fix: show file actions for direct exec attachments
2026-10-31 16:50:09 +08:00
Bingxi Zhao
834bcf3f93 Merge pull request #2149 from KKandLL-Forever/fix/utf8-state-reads
fix: read state files with the writers' UTF-8 encoding
2026-10-31 16:46:05 +08:00
Rudy Celekli
520d1bf556 fix(library): report restore content conflicts without a server error
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.
2026-10-31 01:53:57 -04:00
Rimcat-JA
76dbbc36b6 feat(i18n): add Japanese as an interface language
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>
2026-10-31 01:56:58 +09:00
yuleihaotong
35512dccff feat(auth): prompt users who still hold an admin-assigned password
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.
2026-10-30 17:44:24 +08:00
yuanyyt
58afb10b57 fix: harden tutor-thread source recovery
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.
2026-10-30 15:55:21 +08:00
이정현
2de95b69cd fix(knowledge): return 404 instead of 500 for a missing knowledge base 2026-10-30 16:50:13 +09:00
yuanyyt
14292b808f feat: clear or move a tutor thread's source message
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.
2026-10-30 13:55:30 +08:00
yuanyyt
50f1d9f529 feat: recover the source message of legacy tutor threads
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.
2026-10-30 13:55:29 +08:00
yuleihaotong
1606c9e702 feat(auth): add password change endpoints and accept CJK usernames
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.
2026-10-30 10:14:56 +08:00
d41sys
9ddbb92c36 feat: add Vietnamese localization 2026-10-30 02:28:18 +01:00
hongthana
98cfb501a5 feat(web): add account-scoped learning typography 2026-10-30 07:41:44 +07:00
Bingxi Zhao (Frank)
e495fd6002 Merge origin/dev and reconcile creation contracts and replay tests 2026-10-29 18:13:47 +08:00
Bingxi Zhao (Frank)
01d7c0ed55 feat: add conversational creation drafts and refresh local dev UI 2026-10-29 18:11:52 +08:00
knowhy
6f63e033db feat(providers): add LLMTR as an OpenAI-compatible gateway 2026-10-29 07:48:11 +00:00
wangkai
cbd925db0f fix(api,modules): read generated indexes as UTF-8
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.
2026-10-29 13:33:14 +08:00
meconopscsh
877606fc2f feat: let learners turn off the chat composer's next-message hint
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>
2026-10-29 12:18:54 +09:00
Cursor Agent
85f5d1c308 feat(providers): add CloudGPU as an OpenAI-compatible gateway
Register the CloudGPU provider spec, settings and runtime tests, and the official site icon.

Co-authored-by: CloudGPU <mrhy7176@users.noreply.github.com>
2026-10-29 00:12:41 +00:00
Erhan ÜRGÜN
ff15bf084d feat(i18n): carry Turkish into the CLI, quiz judge, books, partners and voice
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.
2026-10-29 01:05:43 +03:00
Erhan ÜRGÜN
e61181a4fc feat(i18n): add Turkish as an interface and reply language
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.
2026-10-29 01:05:32 +03:00
0x-IHRR
c097402538 fix: expose actions for exec turn attachments 2026-10-29 02:51:32 +08:00
Bingxi Zhao (Frank)
adf99ad8aa Merge pull request #2122: resend with live model and response language 2026-10-29 01:12:05 +08:00
Bingxi Zhao (Frank)
f50ab3afb0 Merge pull request #2050: inspect and clean generated files 2026-10-29 01:10:37 +08:00
Bingxi Zhao (Frank)
9269029699 Merge pull request #2086: server folder picker with all supported locales 2026-10-29 01:10:00 +08:00
Bingxi Zhao (Frank)
aabf8d3a99 Merge pull request #2099: Anki flashcard export 2026-10-29 01:02:52 +08:00
Bingxi Zhao (Frank)
f3710ce0ab Merge pull request #2098: calendar ICS export 2026-10-29 01:01:59 +08:00
Bingxi Zhao (Frank)
c1b238c162 Merge pull request #2048 into validated PR integration 2026-10-29 00:56:13 +08:00
Bingxi Zhao (Frank)
28ca8ed0b7 Merge pull request #2065 into validated PR integration 2026-10-29 00:56:12 +08:00
Bingxi Zhao (Frank)
8f60fa8339 Merge pull request #2121 into validated PR integration 2026-10-29 00:56:09 +08:00
Bingxi Zhao (Frank)
1ea7df1554 docs: consolidate developer and agent handbook 2026-10-29 00:36:18 +08:00
sjagadee
99303f9df7 fix: use the current model and reply language when editing or resending
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.
2026-10-28 09:08:22 -05:00
Frank-zhu2000
9dbed4b21f fix: do not persist a placeholder theme when settings fail to load
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.
2026-10-28 18:33:14 +08:00
Frank-zhu2000
9a04808c33 fix: follow the OS theme until the user picks 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.
2026-10-28 16:31:49 +08:00
Bingxi Zhao (Frank)
9ce7ba9059 fix 2026-10-28 12:28:20 +08:00