Commit Graph

1195 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
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
游标卡尺
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
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
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
2026-11-16 02:17:36 +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)
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)
18e491d346 fix(rag): surface IMA content restrictions and seed retrieval failures 2026-11-15 01:04:25 +08:00
Bingxi Zhao (Frank)
719e2a8e30 fix(chat): inherit ready workspace knowledge bases for untouched sessions 2026-11-15 01:00:49 +08:00
Bingxi Zhao (Frank)
b266d1a14d fix(chat): preserve sent history snapshots for prompt cache reuse 2026-11-15 01:00:14 +08:00
Bingxi Zhao (Frank)
b46d9b5763 fix(mcp): reconnect after consent and refresh authorization status
Local dev repairs for #2586.

OAuth owner isolation and refresh-token stability verified. Hook polls until connected, refreshes on focus and stops on unmount. Python rechecks: 56 passed; UI batch: 25 passed. Web typecheck, 1407 Node tests, eslint and i18n passed.
2026-11-15 00:50:30 +08:00
Bingxi Zhao (Frank)
30a7e43001 fix(memory): capture chat questions and rebuild missing L2 documents
Local dev repairs for #2294.

Memory, regeneration and decoding suite: 398 passed; regeneration does not duplicate trace events.
2026-11-15 00:50:30 +08:00
Bingxi Zhao (Frank)
ea67eb00cb fix(llm): accept offered Claude SDK tools without the MCP prefix
Local dev repairs for #2539, #2686. Regression checks cover reported symptoms and compatibility boundaries.
2026-11-15 00:44:10 +08:00
Bingxi Zhao (Frank)
e0872716f0 fix(runtime): announce input waits and reject oversized history plans
Local dev repairs for #2387, #2433, #2496. Regression checks cover reported symptoms and compatibility boundaries.
2026-11-15 00:44:09 +08:00
Bingxi Zhao (Frank)
92a26ae3cc fix(storage): isolate attachment writes and settle document parsing
Local dev repairs for #2244, #2245, #2255, #2426, #2453. Regression checks cover reported symptoms and compatibility boundaries.
2026-11-15 00:44:09 +08:00
Bingxi Zhao (Frank)
8b9acde791 Merge PR #2532: feat(subagent): speak ACP as a client so compliant agents plug in
Honor ACP loadSession capability and empty load results, validate the negotiated version, distinguish bidirectional request IDs, and fail immediately on stdout EOF so bounded teardown can reap the child. 102 tests passed, including real subprocess EOF cleanup; protocol checked against https://agentclientprotocol.com/protocol/v1/session-setup.
2026-11-14 23:25:46 +08:00
Bingxi Zhao (Frank)
85c91992c7 Merge PR #2582: fix: CodeBuddy provider: /auth/start can permanently wedge the settings API + incompatibilities with WorkBuddy 5.9.3 des
Replace in-request backoff with a monotonic cache, shield shared status probes, bound SDK startup and flow waits, retain child task ownership, and fence stale probe/login results across start, cancel, and logout (35 passed).
2026-11-14 23:23:00 +08:00
Bingxi Zhao (Frank)
2d493edb84 Merge PR #2521: feat(i18n): add Hindi as a reply language
Regenerate the lazy route index after the reply-language contract changes; targeted tests passed.
2026-11-14 23:16:33 +08:00
Bingxi Zhao (Frank)
33078edd49 Merge PR #2542: fix: register connected knowledge bases in the viewing workspace
Regenerate the lazy route index after workspace registration changes; targeted API tests passed.
2026-11-14 23:16:29 +08:00
Bingxi Zhao (Frank)
794f1c7399 Merge PR #2545: fix: scope text source_path RAG to the requested document (#2374)
Declare document-scope support at the pipeline contract and reject unsupported scoped queries before rewrite/retrieval; verify empty scopes also fail closed (29 retrieval tests and 10 service tests passed).
2026-11-14 23:16:26 +08:00
Bingxi Zhao (Frank)
6fcdec2ec8 Merge PR #2550: feat(parsing): emit content_list blocks from the Docling adapter
Normalize Docling coordinates to top-left 0..1000 before unions, omit unverifiable geometry, and bump the cache schema. Tests cover both origins, non-square pages, mixed records, and invalid sizes (36 passed; optional docling-core test skipped).
2026-11-14 23:14:04 +08:00
Bingxi Zhao (Frank)
6c1e3b6e60 Merge PR #2549: fix(llm): map Anthropic context-window, refusal and stop_sequence stop reasons
Move the context-full finish reason into the shared LLM protocol and add English and Chinese notices; test both localized warnings and provider mappings (186 passed).
2026-11-14 23:09:35 +08:00
Bingxi Zhao (Frank)
0d9b45f37f Merge PR #2562: fix(llm): stop dropping the answer when a reply mentions <think>
Protect fenced and inline Markdown examples while stripping real closed, mixed-spelling, and interrupted reasoning blocks; add regressions for literal tags and code inside reasoning.
2026-11-14 23:08:23 +08:00
Bingxi Zhao (Frank)
9e7f44f978 Merge PR #2616: feat(search): add SearchApi provider with web, news and scholar modes
Remove the obsolete Google News link=resolved parameter; preserve returned redirect URLs and verify them with a realistic response fixture.
2026-11-14 23:06:04 +08:00
Bingxi Zhao (Frank)
7af36949bb Merge PR #2654: feat(search): make the Zhipu request engine configurable (#2617)
Keep all four supported Zhipu engines, including saved Sogou and Quark profiles; verify config aliases and request overrides and format tests.
2026-11-14 23:05:33 +08:00
Bingxi Zhao (Frank)
4889243501 Merge PR #2553: fix(parsing): preserve LiteParse page metadata
Format the parser regression tests; combined adapter suite passed.
2026-11-14 23:04:56 +08:00
Bingxi Zhao (Frank)
3a8524b073 Merge PR #2565: fix(knowledge): skip unreadable index versions instead of failing the KB list
Format the unreadable-index regression tests; targeted suite passed.
2026-11-14 23:04:54 +08:00
Bingxi Zhao (Frank)
d0fc167b9e Merge PR #2606: fix: make foreign tool call ids valid for Anthropic
Encode foreign tool IDs injectively with a reserved URL-safe prefix; test distinct calls, paired results, native IDs, and unchanged history (39 passed).
2026-11-14 23:04:28 +08:00
Bingxi Zhao (Frank)
f8d7ea9012 Merge PR #2491: fix(llm): recognize published GPT-6 context capacities
Add regression coverage for all four GPT-6 model names and explicit catalog-window overrides.
2026-11-14 23:03:51 +08:00
Bingxi Zhao (Frank)
dc537c9367 Merge PR #2527: fix: keep first-chat tokenizer acquisition local and nonwaiting 2026-11-14 23:00:45 +08:00
Bingxi Zhao (Frank)
4c67b87018 Merge PR #2529: feat: add SpecStream as a web search provider
Register both independently added search providers and preserve both provider test cases and display labels.
2026-11-14 23:00:45 +08:00
Bingxi Zhao (Frank)
006b369008 Merge PR #2533: feat(search): add DeepSeek standalone SERP provider 2026-11-14 23:00:23 +08:00
Bingxi Zhao (Frank)
3fc9d2ce18 Merge PR #2534: feat(web_fetch): pluggable fetch backend with DeepSeek Fetch as first alternative
Combine independent locale additions and regenerate integrated route index.
2026-11-14 23:00:23 +08:00
Bingxi Zhao (Frank)
83f18f1be2 Merge PR #2577: feat(sidebar): group a practice session's questions into one Learning Records row 2026-11-14 23:00:04 +08:00
Bingxi Zhao (Frank)
2b2e7bb335 Merge PR #2519: fix(parsing): report a Docling option-setup fallback instead of swallowing it 2026-11-14 22:58:51 +08:00
Bingxi Zhao (Frank)
39239ac1a8 Merge PR #2624: fix: sanitize raw agentic chat replay messages 2026-11-14 22:58:48 +08:00
Bingxi Zhao (Frank)
0a80fb5403 Merge PR #2609: fix: skip a missing neighbour page instead of discarding the lesson 2026-11-14 22:58:02 +08:00
Bingxi Zhao (Frank)
e9835ea372 Merge PR #2607: fix: trim over-long lesson page selections instead of failing 2026-11-14 22:58:02 +08:00
Bingxi Zhao (Frank)
ef44b97564 Merge PR #2651: fix(mastery): keep an issued question gradable after its KB is re-indexed (#2650) 2026-11-14 22:58:02 +08:00
Bingxi Zhao (Frank)
269a026f84 Merge PR #2537: fix(practice): grade optionless true-false answers 2026-11-14 22:58:01 +08:00
Bingxi Zhao (Frank)
d76a4cbe7e Merge PR #2526: fix: resolve workspace KB scope past dead registrations; keep the progress stream off the activity lease
Regenerate the lazy router index against the integrated route sources.
2026-11-14 22:58:00 +08:00
Bingxi Zhao (Frank)
c79aa9d6cb Merge PR #2581: fix: report GitHub source syncs with no supported files 2026-11-14 22:57:42 +08:00
Bingxi Zhao (Frank)
21e9878b59 Merge PR #2556: fix: sync and index MDX documentation in knowledge bases 2026-11-14 22:57:42 +08:00
Bingxi Zhao (Frank)
49d727f32d Merge PR #2492: fix(mcp): refresh persisted OAuth grants after restart 2026-11-14 22:57:41 +08:00
Bingxi Zhao (Frank)
54324f8318 Merge PR #2674: fix: reject partner session branches that already exist
Preserve both image-only partner history coverage and existing-destination validation tests; combined partner suite: 146 passed.
2026-11-14 22:57:24 +08:00
Bingxi Zhao (Frank)
3658dd6854 Merge PR #2633: fix(chat): label reinjected prior-turn images as historical 2026-11-14 22:52:56 +08:00