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.
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
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.
* 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>
* 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>
#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.
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>
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>
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.
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.
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)
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