Commit Graph

913 Commits

Author SHA1 Message Date
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)
a0b5721ab6 fix(tutor): detach recycled threads before deleting source messages 2026-10-31 17:26:25 +08:00
Bingxi Zhao (Frank)
07db7024a7 Merge dev and refresh the French locale router index 2026-10-31 17:25:02 +08:00
Bingxi Zhao (Frank)
f6313b70a1 fix(tutor): detach PocketBase thread anchors when regenerating 2026-10-31 16:52:54 +08:00
Bingxi Zhao
24d73e2061 Merge pull request #2226 from rudycelekli/fix/voice-tex-limit-order-20261030
fix(voice): preserve TeX limit meaning in either script order
2026-10-31 16:47:44 +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
Bingxi Zhao
a11535ee7c Merge pull request #2153 from sriv144/codex/partner-snapshot-archive-state
[codex] Honor soft archive state in partner memory snapshots
2026-10-31 16:45:33 +08:00
Bingxi Zhao
c1842ee996 Merge pull request #2197 from Eapp1e/fix/archived-workspace-navigation-index
fix(workspace): skip archived workspaces in navigation indexes (#2196)
2026-10-31 16:44:44 +08:00
Bingxi Zhao
3b5800619d Merge pull request #2200 from rudycelekli/codex/fix-calendar-same-day-weekdays-20261030
fix(calendar): preserve weekdays on earlier same-day series moves
2026-10-31 16:43:41 +08:00
Bingxi Zhao
ab6853b380 Merge pull request #2198 from rudycelekli/codex/fix-stt-finite-timestamps-20261030
fix(voice): reject non-finite transcription timestamps
2026-10-31 16:43:13 +08:00
Bingxi Zhao
119abe1446 Merge pull request #2233 from rudycelekli/fix/gemini-wav-response-20261030
fix(voice): decode Gemini WAV containers before PCM output
2026-10-31 16:42:37 +08:00
Bingxi Zhao
e1b7d7061d Merge pull request #2238 from rudycelekli/fix/video-poll-total-budget-20261031
fix(videogen): enforce the complete polling time budget
2026-10-31 16:42:04 +08:00
Bingxi Zhao
3f41345d8f Merge pull request #2240 from rudycelekli/fix/library-unicode-filename-search-20261031
fix(library): match Unicode filename case during search
2026-10-31 16:41:42 +08:00
Bingxi Zhao
00a9301ffd Merge pull request #2239 from rudycelekli/fix/library-restore-content-conflict-20261031
fix(library): report restore content conflicts without a server error
2026-10-31 16:41:10 +08:00
Rudy Celekli
b450c589a4 fix(library): match Unicode filename case during search
Apply Unicode casefolding to filename and query instead of relying on SQLite LIKE ASCII-only folding. Preserve literal wildcard escaping, soft-deletion filtering and result ordering.

AI-assisted: implemented and validated with OpenAI Codex; actual SQLite stores and isolated API fixtures.
2026-10-31 02:00:07 -04: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
Rudy Celekli
214ca4d724 fix(videogen): enforce the complete polling time budget
Apply the configured polling deadline to status requests, progress callbacks and intervals in both video adapters. Keep external cancellation and unrelated callback timeout errors intact.

AI-assisted: implemented and validated with OpenAI Codex; real local HTTP fixtures, no live generation provider calls.
2026-10-31 01:48:44 -04:00
Rudy Celekli
e9935787f8 fix(services): isolate cancellation of coalesced hint requests
Keep a shared hint producer alive when one consumer is cancelled, and remove its inflight entry only when production finishes. Observe abandoned errors without changing propagation to remaining consumers.

AI-assisted: implemented and validated with OpenAI Codex; no live provider calls.
2026-10-31 01:34:35 -04:00
Rudy Celekli
c0d7366aa6 fix(voice): decode Gemini WAV containers before PCM output
AI assistance: implemented and validated with OpenAI Codex; offline protocol fixtures, no live provider acceptance claimed.
2026-10-30 23:47:27 -04:00
Rudy Celekli
0a62b3b97c fix(voice): preserve TeX limit meaning in either script order
Read lower and upper bounds independently of their TeX order and consume the optional limits placement command before verbalizing them.

AI-assisted: implementation and regression tests prepared and validated with OpenAI Codex. Maintainer review is pending.
2026-10-30 23:18:20 -04:00
Antonio-Faure
28d86973a4 fix(i18n): complete the French catalog and follow it for partner replies
- add the 760 English keys missing from the French catalog and translate 229 values still copied from English\n- make a partner's empty reply language (Auto) follow the account model output language instead of hardcoding English\n- label Auto with the configured language and offer every supported response language in the picker\n- localize the Feishu thinking notice for every supported response language\n- add French catalog, picker and partner runtime regression tests
2026-10-30 18:02:55 +01:00
yuanyyt
19760d5ded fix: refresh tutor threads after deleting a source message
Return the detached thread ids from deleteMessage and have deleteTurn
notify the session-change bus, so useSessionThreads and the viewer refresh
immediately instead of keeping a stale marker.

ChatWorkspace clears only the tabs still pointing at one of the deleted
message rows; a newer passage selected but not yet sent survives the delete.
2026-10-30 23:15:37 +08:00
Rudy Celekli
3220e0b378 fix(calendar): preserve weekdays on earlier same-day series moves 2026-10-30 07:55:43 -04:00
Rudy Celekli
0285134d11 fix(voice): reject non-finite provider cue timestamps 2026-10-30 07:52:13 -04:00
Eapp1e
fa581ca8bf fix(workspace): skip archived workspaces in navigation indexes
Archived workspaces are hidden in the picker and rejected by the catalog
resolve path, but read_workspace_indexes() still polled them, logging a
traceback and reporting them as unavailable on every navigation request.

Signed-off-by: Eapp1e <163811520+Eapp1e@users.noreply.github.com>
2026-10-30 11:42:44 +00:00
Eapp1e
9a02c9820f fix(workspace): skip archived workspaces in navigation indexes
Archived workspaces are hidden in the picker and rejected by the catalog
resolve path, but read_workspace_indexes() still polled them, logging a
traceback and reporting them as unavailable on every navigation request.

Signed-off-by: Eapp1e <163811520+Eapp1e@users.noreply.github.com>
2026-10-30 11:34:47 +00: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
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
yuanyyt
43b66ac1ad feat: add a message-level Little Tutor entry
Side chats are filed under the message their quoted passage came from:
the turn carries quoted_message_id, the backend stores it as
tutor_source_message_id, and the chat list shows "Little Tutor x N"
under that message with a popover to open or delete each thread.

Threads are read once per conversation and shared with the viewer, only
side-chat turns refresh the session lists, and a turn that omits the
field leaves the stored anchor untouched.

Refs #2118
2026-10-30 13:55:29 +08:00
d41sys
9ddbb92c36 feat: add Vietnamese localization 2026-10-30 02:28:18 +01: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
sriv144
ad160faeb2 fix: honor soft archive flags in partner memory snapshots 2026-10-29 12:11:31 +05:30
wangkai
b19e281b82 fix(rag,session): read coverage and cost reports as UTF-8
The visual-coverage report and recovered usage reports are UTF-8 JSON
written by this codebase, but were read through the locale default.
Non-ASCII titles made coverage fall back to unverified and cost recovery
silently lose per-model details on Chinese Windows.
2026-10-29 13:33:14 +08:00
wangkai
d52fb366c3 fix(workspace): read migration state files as UTF-8
The migration journal, PocketBase snapshot, presentation items and
dependency-closure documents are written as UTF-8 by atomic_write_json()
but were read through the locale default. On Chinese Windows (cp936)
non-ASCII names raise UnicodeDecodeError or come back as mojibake, so
workspace migration/preview can fail or copy wrong values.

Read them with file_io.read_text(), which uses the writers' encoding and
the same bounded PermissionError retry as the write side.
2026-10-29 13:33:13 +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
Bingxi Zhao (Frank)
308d99b167 style(memory): apply repository line length to rebased contribution 2026-10-29 01:38:15 +08:00
Bingxi Zhao (Frank)
15aa6a75ae Merge current rebased head of PR #2112 2026-10-29 01:38:01 +08:00
Bingxi Zhao (Frank)
086ad067c9 fix(integration): complete cancellation, documentation and browser regressions 2026-10-29 01:37:11 +08:00
Bingxi Zhao (Frank)
2c47cc22ce fix(integration): authenticate search and regenerate route contracts 2026-10-29 01:19:18 +08:00
Bingxi Zhao (Frank)
5ad749ac9c Merge pull request #2025: You.com search provider 2026-10-29 01:13:31 +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)
9269029699 Merge pull request #2086: server folder picker with all supported locales 2026-10-29 01:10:00 +08:00
Bingxi Zhao (Frank)
ebcec14c1d fix(llm): bound Claude session lifecycle and share SDK wire adaptation 2026-10-29 01:09:09 +08:00
Bingxi Zhao (Frank)
b89748200a Merge pull request #2109: Claude Agent SDK provider 2026-10-29 01:07:23 +08:00
Eapp1e
e1c05b8527 fix(memory): size chunk windows by the stride that overlap leaves
Formatting pass with ruff 0.16.0 so the lint job stops asking for a reformat;
no behaviour change: tests/services/memory/test_chunker.py still passes 15/15.

Signed-off-by: Eapp1e <163811520+Eapp1e@users.noreply.github.com>
2026-10-28 17:06:31 +00:00