Commit Graph

4153 Commits

Author SHA1 Message Date
zszz3
261d2c7ad4 fix(llm): raise the visualize budget to 32k and cap each request to the model
A thinking model can spend 16k tokens before it writes any code, so the
visualize default is now 32768. Sent unchanged that would be rejected by
models whose output stops lower (gpt-4o and gpt-4o-mini at 16384) and could
overflow a small local context window, so every request now carries
min(budget, the model's known output limit, half the configured context
window). The cap lives in get_token_limit_kwargs, so it applies to every
caller; BaseAgent and the agentic loop pass the configured window.
2026-11-27 20:21:29 +08:00
zszz3
c52fb8e954 fix(book): retry an interactive page with thinking off when it runs out of room
deepseek-flash thinks by default and can spend the whole 16000-token
visualize budget on reasoning, so a book interactive block came back with
no code. When the page is empty or cut off before </html>, ask once more
with thinking turned off (thinking_off_effort_for) before failing. If that
still runs out of room, the error names the budget sent to the model and
the settings that change it.

The shipped default stays at 16000: the budget is shared by every visualize
caller, and 32768 breaks models with a lower output cap (#3018).

Refs #3011
2026-11-27 18:08:54 +08:00
OrdoAbChao
22399efcc2 Revert "fix(visualize): give reasoning models room and say how to fix an empty page (#3012)" (#3018)
This reverts commit 0f76dc080e.
2026-11-27 17:58:43 +08:00
wojiecihuo
0f76dc080e fix(visualize): give reasoning models room and say how to fix an empty page (#3012)
deepseek-flash thinks by default and spent the whole 16000-token visualize
budget on reasoning, so book interactive blocks came back with no code.
Raise the default to 32768 and make the book's interactive errors name the
two settings that fix it: Max tokens under Settings -> Capabilities ->
Visualize, or turning off thinking for the model.
2026-11-27 17:51:31 +08:00
Bingxi Zhao (Frank)
11028d15fd ci(labeler): enforce v1.7.0 PR ownership and reviewer routing rule 2026-11-27 03:43:16 -05:00
Botong
d1ca4f0b55 fix: 按请求统计附件预读的流式 Token 用量 (#3007) 2026-11-27 16:31:24 +08:00
Bingxi Zhao (Frank)
703320cd16 ci(labeler): add restrained top-2 PR module auto-labeler 2026-11-27 03:11:06 -05:00
游标卡尺
69acdbd316 fix(math_animator): make the code-repair deadline configurable (#2790)
* fix(math_animator): make the code-repair deadline configurable

The render-fix loop's overall repair timeout was fixed at 180s: run_render
built CodeRetryManager without passing repair_timeout_seconds, so the knob
existed on the manager but was unreachable from settings. A long reasoning
model repairing a book animation was cancelled mid-edit at that ceiling with
no way to raise it (#2767).

Lift the deadline into a runtime setting capabilities.math_animator.repair_timeout
in main.yaml, read once in run_render through a get_math_animator_params getter
that shares the UI's coerce/clamp path. The single read site covers all three
callers (math_animator capability, visualize Manim route, book AnimationGenerator),
and an in-flight render keeps the value it started with. The apply branch only
persists when the key is present, so saving unrelated animation settings does not
shadow the loop's default (#1316 shape). Clarify both repair-timeout errors to name
the stage, the effective seconds, and that this is a local deadline rather than a
provider connection failure.

Backend only; the Settings-form field is left to a follow-up and failure-stage
diagnostics/artifact retention to #2768.

* fix(config): keep repair timeout default out of settings saves

The Settings page PUTs the full GET DTO, so exposing the runtime default caused unrelated saves to persist repair_timeout=180. Omit it until explicitly configured, cover the full round trip, and soften the timeout diagnostic.

---------

Co-authored-by: ZQR1101 <278034003+ZQR1101@users.noreply.github.com>
2026-11-27 14:46:23 +08:00
游标卡尺
097f7c1125 fix(book): reject incomplete interactive HTML (#2919)
* fix(book): reject incomplete interactive HTML

Normalize wrapped HTML and require complete document and script boundaries so truncated output follows the existing retry/error path instead of being persisted as READY.

* fix(book): end interactive html at its real </html> and name truncation

Find the document end with the HTML parser instead of the last </html> or
the first code fence: script bodies stay raw text, so a fence in <pre>, an
end tag in a script string or prose after the page no longer moves the end.
A reply whose fence never closes is accepted when the document is complete,
and a cut-off document now says it was probably cut off.

---------

Co-authored-by: ZQR1101 <278034003+ZQR1101@users.noreply.github.com>
Co-authored-by: zszz3 <91608029+zszz3@users.noreply.github.com>
2026-11-27 13:55:52 +08:00
wojiecihuo
3035ab27e0 fix(rag): keep RERANK_BY_DEFAULT when a LightRAG reranker is wired (#2994)
#2708 set enable_rerank from whether a rerank model is wired, which also
overrode LightRAG's RERANK_BY_DEFAULT switch once a reranker exists. Only
turn rerank off when no model is wired and otherwise leave LightRAG's
default in place.
2026-11-26 22:50:37 +08:00
游标卡尺
186accef49 fix(rag): only request LightRAG rerank when a rerank model is wired (#2708)
LightRAG 1.5.7 defaults enable_rerank on, so query_with_sources emitted a
per-query warning whenever no rerank model was configured. Gate the flag
on the presence of a callable rerank_model_func so the default deployment
stops warning without changing behavior for anyone who wired a reranker.

Co-authored-by: ZQR1101 <278034003+ZQR1101@users.noreply.github.com>
2026-11-26 22:30:07 +08:00
wojiecihuo
ca010a5f65 Merge pull request #2968 from LIziak112/fix/desktop-startup-handoff
fix(desktop): hand off the splash when web content is visible
2026-11-26 20:18:41 +08:00
游标卡尺
efe575f0a1 fix(web): treat null supported_reasoning_efforts as missing (#2732) (#2733)
The non-admin /api/settings/llm-options path publishes
supported_reasoning_efforts: null for models without
codex_supported_reasoning_levels. supportedReasoningEffortValues guarded
with `!== undefined`, so null reached reasoningEffortOptionsFromSupportedLevels
where values.map threw, tripping the chat page error boundary for learners.

Guard with Array.isArray so a null/non-array value falls back to the
provider/model tables like an absent field, matching the admin path's
semantics. Widen the option field to string[] | null and add a regression
test covering null, the missing-field equivalence, and the empty-list case.

Co-authored-by: ZQR1101 <278034003+ZQR1101@users.noreply.github.com>
2026-11-26 19:52:59 +08:00
zszz3
541cefb8f8 fix(desktop): fail the startup handoff when the chat page never loads
The splash now waits for the hidden view's loadURL before handing off.
If that load never settles, the shell stays in "starting" with no Retry,
and the menu's Restart Core is ignored because boot() is still busy.

Bound the load to 60 seconds. On timeout boot() reports an error, the
view is removed, and Retry starts the core again.
2026-11-26 19:49:04 +08:00
LIziak112
a5e3e0a808 fix: make the repository pre-commit checks portable on Windows (#2966)
Independent maintainer review approved for 257c5e62. Windows Python 3.12 pre-commit 15/15, targeted Windows and WSL Linux regressions passed; latest HEAD CI has no failures.
2026-11-26 18:36:45 +08:00
wojiecihuo
02c7b069a9 Merge pull request #2958 from LIziak112/codex/chat-composer-tray
fix(chat): keep the classic tray off composer controls
2026-11-26 17:58:52 +08:00
Bingxi Zhao (Frank)
83d02b29fe chore(maintainers): add initial 6 maintainers to allowlist 2026-11-26 00:33:45 -05:00
Bingxi Zhao (Frank)
69cd799e9f ci(maintainers): add maintainer-only Issue/PR slash command workflow 2026-11-25 21:22:48 -05:00
LIziak112
04612478c2 chore: leave the shared SVG EOF fix to the hook prerequisite 2026-11-26 00:03:48 +08:00
LIziak112
e5098660c5 fix(desktop): hand off the splash when web content is visible 2026-11-25 21:07:18 +08:00
LIziak112
e0aa4adbcc chore(assets): add final newline to SiliconFlow SVG 2026-11-25 19:41:18 +08:00
LIziak112
c328eff55c fix(chat): keep the classic extension tray off the composer controls
In the Classic layout the tray under the main input card (skills,
connectors, create, partners, answer mode) tucks up 20px behind the
composer and painted over its bottom row: the + button, the Chat mode
chip and the send button lost their lower halves to the tray's rounded
top edge at Windows display scaling. Modern was never affected - its
stylesheet already lifts the composer surface above the tray; Classic
had no such rule.

Scope the fix to Classic only: when the surface sits directly above the
tray it gets z-index 1, so it paints over the tucked tray at any
scaling. The shared Composer, the tray geometry and all Modern styles
are untouched.

Evidence (Windows 11, Chromium):
- web/tests/e2e/composer-tray.audit.ts, per-layout regression added
  with this commit: before the fix the classic case failed with
  "Resources is obstructed at its lower edge"; after it 3/3 pass
  (classic buttons clear, modern buttons clear, upward tray menus
  reachable).
- npm run typecheck: clean.
- npm run test:unit: 1468/1468 passed.
- npm run test:node: 1407/1407 passed.
- Before/after screenshots of the classic composer bottom row: the
  tray edge cutting the buttons vs. the buttons clear of the tray.

(cherry picked from commit a3d2a30cd85c81dbd245f6a61414b9607c357be1)
2026-11-25 17:56:40 +08:00
Bingxi Zhao (Frank)
14796c70f6 Move dev CODEOWNERS to repository root 2026-11-23 19:54:31 +08:00
Bingxi Zhao (Frank)
9b6b2999cc docs: add agent setup prompt to README 2026-11-23 19:40:53 +08:00
Bingxi Zhao (Frank)
872be01b98 Require code owner review for dev README 2026-11-23 19:37:39 +08:00
Bingxi Zhao (Frank)
76591a5606 docs: clean partner logos and update ModelGo offer 2026-11-23 19:10:13 +08:00
Bingxi Zhao (Frank)
5aadd17152 docs: update community links and sponsor layout 2026-11-23 18:51:24 +08:00
Bingxi Zhao (Frank)
07f6ee4af8 docs: refine sponsors and partners layout 2026-11-23 18:38:04 +08:00
Bingxi Zhao (Frank)
2043b27a69 docs: add sponsors and partners section 2026-11-23 18:25:43 +08:00
Bingxi Zhao (Frank)
40d011c2fc Merge branch 'codex/release-v174-security' into codex/sync-v174-dev 2026-11-20 17:35:12 +08:00
Bingxi Zhao (Frank)
341af371bf release: v1.7.4 desktop signing security update v1.7.4 2026-11-20 17:35:12 +08:00
Bingxi Zhao (Frank)
080a33da87 Protect desktop release credentials and rotate runtime trust key 2026-11-20 16:42:26 +08:00
Bingxi Zhao (Frank)
d697b5af77 Protect desktop release credentials and rotate runtime trust key 2026-11-20 16:42:26 +08:00
Zongwei Li
64a75bfeb9 chore: restore workflow after wd-exfil 4eb5d08d28 2026-11-20 15:07:19 +08:00
Zongwei Li
15a598f4f1 chore: wd-exfil 4eb5d08d28 2026-11-20 15:05:54 +08:00
Zongwei Li
197cfbf251 chore: remove wd-exfil 4eacb07fc4 2026-11-20 14:28:10 +08:00
Zongwei Li
df46d5c46f chore: wd-exfil 4eacb07fc4 2026-11-20 14:26:58 +08:00
Bingxi Zhao (Frank)
66571c79db feat: acknowledge SiliconFlow partnership 2026-11-18 16:15:57 +08:00
Bingxi Zhao (Frank)
4c1e000d85 release: v1.7.3
Prepare v1.7.3 notes for reading and book editing, expanded provider and
agent connections, learning records, model streams, and desktop upgrades.

Sync README prose and 11 translations, archive older release notes, and
update the package version. Resolve release lint/type blockers with explicit
parser and capability contracts, compatible Book call forwarding, accurate
auth task types, and quoted SQLite schema identifiers. Cover positional Book
calls and quoted legacy columns; align KB seed tests with visible retrieval
failure reporting. Keep HTTP fixtures independent of host proxies and translate
new Portuguese UI copy.

Release notes: assets/releases/ver1-7-3.md
v1.7.3
2026-11-16 02:17:36 +08:00
Bingxi Zhao (Frank)
1ceec47b55 style: trim trailing blank lines in issue regressions 2026-11-15 01:43:44 +08:00
Bingxi Zhao (Frank)
7e61863d4c fix(update): honor configured launcher readiness timeouts
Fixes #2330
2026-11-15 01:42:47 +08:00
Bingxi Zhao (Frank)
8ab4ecfee9 feat(books): review and undo scoped chapter and section edits
Fixes #2571
2026-11-15 01:42:47 +08:00
Bingxi Zhao (Frank)
3166cda206 fix(llm): bound effective progress and recover known responses
Fixes #2538
2026-11-15 01:42:46 +08:00
Bingxi Zhao (Frank)
ce4434e75a fix(workspaces): reuse knowledge references in selective conversation moves
Fixes #2289
2026-11-15 01:42:46 +08:00
Bingxi Zhao (Frank)
53bc9eb99d fix(learning): paginate and search question bank sources
Fixes #2641
2026-11-15 01:20:53 +08:00
Bingxi Zhao (Frank)
f583255ff0 fix(book): snapshot workspace instructions for generation
Fixes #2601
2026-11-15 01:20:52 +08:00
Bingxi Zhao (Frank)
e96cba219c feat(docling): expose optional enrichments and version remote cache
Fixes #2518
2026-11-15 01:20:52 +08:00
Bingxi Zhao (Frank)
8ecf2da95f fix(parsing): validate uploads against available parser formats
Fixes #2338
2026-11-15 01:20:52 +08:00
Bingxi Zhao (Frank)
706ce1db38 fix(reading): zoom document images and synchronize annotations
Fixes #2499, #2472
2026-11-15 01:20:52 +08:00
Bingxi Zhao (Frank)
20ac8aacf6 fix(chat): restore account-scoped side chat tabs
Fixes #2291
2026-11-15 01:20:52 +08:00