Commit Graph

4513 Commits

Author SHA1 Message Date
Bingxi Zhao (Frank)
3a7bcb19a0 fix(multi_user): keep an unreadable account store instead of resetting it (#3083) 2026-12-02 05:30:26 -05:00
Bingxi Zhao (Frank)
90f5d7efa7 feat(mastery): recall completed assessments across sessions (#3132) 2026-12-02 05:28:31 -05:00
Bingxi Zhao (Frank)
22d64edf75 fix: finish Visualize after successful submission (#3148) 2026-12-02 05:28:31 -05:00
Bingxi Zhao (Frank)
349df8203c fix(i18n): fill European catalog gaps, plurals and stale French keys (#3067) 2026-12-02 05:28:30 -05:00
Bingxi Zhao (Frank)
bb90a65195 feat: make imagegen/videogen request timeout configurable per model (#2967) 2026-12-02 05:28:29 -05:00
Bingxi Zhao (Frank)
1a2f1a5b97 feat(settings): add Persian (fa) as a model reply language (#2853) 2026-12-02 05:28:28 -05:00
Bingxi Zhao (Frank)
a06aee7257 Fix workspace knowledge base file selection in New Learning (#2913) 2026-12-02 05:28:25 -05:00
Bingxi Zhao (Frank)
bfce2feff4 fix(knowledge): show files in connected Tencent IMA libraries (#3090) 2026-12-02 05:28:23 -05:00
Bingxi Zhao (Frank)
9aa484b8d0 Architecture optimization: resume interrupted reading workspace deletion (#3112) 2026-12-02 05:28:21 -05:00
Bingxi Zhao (Frank)
88ac667ffe docs(book): explain how to use web research as a source (#3042) 2026-12-02 05:28:19 -05:00
Bingxi Zhao (Frank)
0f7e8c7b1e fix(multi-user): prune stale deleted LLM models in GrantEditor (#3085) 2026-12-02 05:28:18 -05:00
Bingxi Zhao (Frank)
e75efaec2a fix: keep hand-written memory bullets on the next write (#3082) 2026-12-02 05:28:18 -05:00
Bingxi Zhao (Frank)
66a37fede0 Fix Video Lesson ignoring image attachments (#3109) 2026-12-02 05:28:18 -05:00
Bingxi Zhao (Frank)
616a0c9e19 fix(i18n): call the installable catalog « Catalogue » in French (#3169) 2026-12-02 05:28:11 -05:00
Bingxi Zhao (Frank)
89ede96357 fix(notebook): use the selected code block theme (#3158) 2026-12-02 05:28:11 -05:00
Bingxi Zhao (Frank)
0228ba24fd feat(desktop): add Windows session file actions and preview recovery (#2940) 2026-12-02 05:28:10 -05:00
Bingxi Zhao (Frank)
8fb99aff29 feat: add month and year picker to calendar (#3104) 2026-12-02 05:28:10 -05:00
Bingxi Zhao (Frank)
c41ad26d66 feat(quiz): store a structured AI-judge verdict for photo answers (#2952) 2026-12-02 05:28:10 -05:00
Bingxi Zhao (Frank)
1041488d4b fix(learning): grade numeric answers deterministically across notations (#2951) 2026-12-02 05:28:07 -05:00
Bingxi Zhao (Frank)
afedf89fad fix: fall back to configured expert voice when TTS discovery is empty (#3037) 2026-12-02 05:28:06 -05:00
Bingxi Zhao (Frank)
aed708a0bf feat: read elementary math in Chinese for Chinese speech (#3077) 2026-12-02 05:28:06 -05:00
Bingxi Zhao (Frank)
e04c50efee fix(i18n): sync frontend output language and remove zh-only UI fallbacks (#3068) 2026-12-02 05:28:05 -05:00
Bingxi Zhao (Frank)
49ed7aa73e fix(i18n): separate interface status from model reply language (#3062) 2026-12-02 05:28:05 -05:00
Bingxi Zhao (Frank)
3a09d49adf fix(mastery): keep an unchanged lesson packet in place so requests stay cacheable (#3187) 2026-12-02 05:28:05 -05:00
Bingxi Zhao (Frank)
be792e8cbe fix(mastery): tolerate preference strategy, normalize evidence quotes, and report path_revision (#3173) 2026-12-02 05:28:04 -05:00
Bingxi Zhao (Frank)
2ae06b7a09 ci(api): check the router index in Repository Hygiene (#3120) 2026-12-02 05:28:04 -05:00
Bingxi Zhao (Frank)
fee97a1233 Architecture optimization: make worker-loss recovery replayable (#3114) 2026-12-02 05:28:04 -05:00
Bingxi Zhao (Frank)
3be1106e79 Architecture optimization: gracefully shut down the Windows desktop API (#3101) 2026-12-02 05:28:03 -05:00
Bingxi Zhao (Frank)
843726bc3d Architecture optimization: commit desktop upgrades after the chat view opens (#3125) 2026-12-02 05:28:03 -05:00
Bingxi Zhao (Frank)
f0565e1776 Architecture optimization: filter managed extensions before starting workers (#3103) 2026-12-02 05:28:03 -05:00
Bingxi Zhao (Frank)
3a577148b6 perf(turns): prepare account directories once per recovery visit (#3153) 2026-12-02 05:28:02 -05:00
Bingxi Zhao (Frank)
eeda144db5 fix(knowledge): end replay after an indexing task reaches terminal state (#3163) 2026-12-02 05:28:02 -05:00
Bingxi Zhao (Frank)
d85c068a91 fix(llm): require message_stop before completing Anthropic streams (#3161) 2026-12-02 05:28:02 -05:00
Bingxi Zhao (Frank)
029ee1522b fix(web-source): keep text after removed elements in HTML extraction (#3171) 2026-12-02 05:28:01 -05:00
Bingxi Zhao (Frank)
c686cf1ebb ci: add a non-blocking Windows baseline for the Python suite (#3165) 2026-12-02 05:28:01 -05:00
Bingxi Zhao (Frank)
0a9d8c1831 CI(Mobile): enable Gradle cache writes on dev and improve build diagnostics (#3181) 2026-12-02 05:28:01 -05:00
Bingxi Zhao (Frank)
533c680e04 fix(runtime): keep the Windows kill round distinct from terminate (#3177) 2026-12-02 05:28:00 -05:00
Bingxi Zhao (Frank)
485bb79a69 test: scope POSIX-only sandbox fallback and file-mode checks off Windows (#3176) 2026-12-02 05:28:00 -05:00
Bingxi Zhao (Frank)
796a4e2968 test: probe worker liveness without os.kill on Windows (#3175) 2026-12-02 05:28:00 -05:00
Bingxi Zhao (Frank)
e159c49791 test(api): verify exact native paths for connections and output reveal (#3172) 2026-12-02 05:27:59 -05:00
Bingxi Zhao (Frank)
8726ce667d docs: add section on moving data between deployments (#2855) 2026-12-02 05:27:59 -05:00
马修权
3a8efc7f46 fix(desktop): restore Windows bounds on the display with the most overlap (#2969)
* fix(desktop): restore Windows bounds on the display with the most overlap

* fix(desktop): retry transient macOS DMG creation failures

Retry hdiutil Resource busy failures with bounded backoff and remove partial images before retrying. Preserve immediate failure for permanent errors and cover retries, cleanup, and child-process diagnostics with regression tests.

* fix(desktop): harden Windows window state persistence and recovery

Flush pending window state on minimized or fullscreen exit, retain deferred display clamping across native transitions, and validate maximized state strictly.

Preserve maximization when a saved display is unavailable and add real Electron lifecycle and cold-start regression tests with documented hardware verification limits.

* test(desktop): initialize Electron before Windows tests

---------

Co-authored-by: Codex <codex@openai.com>
2026-12-02 18:11:53 +08:00
Antonio-Faure
88f649283c fix(mastery): keep an unchanged lesson packet in place so requests stay cacheable
prepare_model_request removed and re-appended the lesson packet (and its
original-page images) at the end of every model request. Each tool round
therefore moved ~3.3K tokens of packet and pages behind the new tool
results, and the next turn removed the stored packet from history, so no
request was a prefix extension of the previous one and every round re-paid
the packet and everything after it.

Deliver the packet like a runtime snapshot: an unchanged packet stays at
the position where it was first sent (within the turn and in replayed
history), and only a changed packet replaces it. The page images are
projected right after the packet instead of at the end of the request.

Refs #3186
2026-12-02 17:38:54 +08:00
wojiecihuo
c9017be166 Merge pull request #3185 from zszz3/fix/chat-stable-tool-surface
fix(chat): keep per-turn-gated tools mounted for the rest of the session
2026-12-02 17:31:14 +08:00
wojiecihuo
22561bfc82 Merge pull request #3184 from zszz3/fix/chat-forced-finish-tools
fix(chat): keep the loop's tools in the forced final round
2026-12-02 17:31:00 +08:00
Antonio-Faure
1358629d57 fix(chat): keep per-turn-gated tools mounted for the rest of the session
tools[] heads the provider prompt-cache key, so a tool that one turn mounts
and the next drops re-bills the whole history on both turns. Three gates were
still read off a single turn:

- has_kb: detaching the knowledge base removed rag / kb_files /
  knowledge_frontier. They now stay mounted once seen (outside exclusive
  capabilities); while no KB is attached, dispatch passes an empty
  _attached_kb_names and the tools refuse every kb_name, so this never
  reaches a detached KB.
- has_book_authoring: a turn without a single referenced book page dropped
  propose_book_edit. It stays; the tool already refuses without a page.
- has_scientific_research where nothing can be deferred (a partner whitelist
  without load_tools): the message regex mounted the research tools for one
  message only. Once mounted they stay.

Also, the setup capability's message/intro heuristic no longer activates on a
partner turn (which can write nothing and is already not offered the deferred
setup tools); with a whitelist lacking load_tools it mounted the setup tools
and a system block on a fresh install's first message and dropped them next.

Adds tools_gated_by() to tool_composition so the sticky checks name gated
tools from the single _CONDITIONAL_MOUNT_FLAGS table.

Refs #3183
2026-12-02 16:58:59 +08:00
zszz3
246aa1426b fix(chat): keep the loop's tools in the forced final round
Prompt caches key on tools, then system, then messages. Every round of a
chat-loop turn sends the loop's tool schemas, but the forced finish (round
budget spent) sent the request with tool_schemas=None. That changed the
very start of the request, so the whole turn history (often 10k-60k
tokens) missed the cache on the final round. tool_choice="none" is no
fix: on DeepSeek it caches exactly like a request without tools.

The forced finish now sends the same tool list the last normal round
sent (taken from the request snapshot, since the deferred tool loader
appends to the live list after a request goes out) with tool_choice left
at auto; the finish instruction already tells the model to stop calling
tools. A tool call it returns anyway is never dispatched, and no ask_user
draft card is published for it. The round is kept in the history as text
only (a call without a result is rejected by the next request; Responses
function_call items are dropped too), a repair note asks for a plain-text
answer, and one more attempt runs. If that also calls a tool, the turn
ends with the existing empty-response fallback. The forced finish still
counts as one loop round. The persisted model_turn tools and the context
budget now reflect what the final request really carried.

The context-exploration pre-pass had the same pattern on its last round
(tools dropped); it now keeps the tools, does not run a tool call there,
repairs once, and otherwise degrades to the existing single pass.

The finish instructions (chat, mastery, explore_context; en/zh) now say
the tools are still listed but no call will run. Same approach as the
staged pipelines' forced finish (#3080).

Refs #3182
2026-12-02 16:58:58 +08:00
wojiecihuo
93e3121ff1 Merge pull request #3180 from zszz3/fix/mid-conversation-system
fix(llm): keep mid-conversation system messages in place
2026-12-02 16:29:13 +08:00
Rudy Mizrahi Celekli
19348d46eb fix(hints): cache completed results after waiters cancel (#2781) 2026-12-02 16:28:22 +08:00
iSanae233
ec3e2d43da ci(mobile): enable Gradle cache writes on dev
Keep pull request and other branch caches read-only, while allowing main and dev builds to persist Gradle dependencies. Include stack traces and dependency resolution diagnostics in Android CI logs.

Co-Authored-By: GPT-6.2 Sol
2026-12-02 16:16:51 +08:00