Commit Graph

102 Commits

Author SHA1 Message Date
Bingxi Zhao
40051be22a Merge pull request #1537 from ZQR1101/fix/question-generation-reasoning-starvation
fix(question): retry a starved quiz repair, and count it honestly (#1508)
2026-09-23 10:24:53 +08:00
Bingxi Zhao (Frank)
eabc17d79f release: v1.6.10
Native LightRAG role models: extraction, keyword, query and vision each
resolve their own model, vision indexing pins a vision-capable model
instead of silently degrading, and a knowledge base records which models
and which embedding built it. A published index refuses queries after its
embedding identity changes rather than searching a foreign vector space,
and a rebuild is confirmed against the configuration it will actually
use — a stale confirmation is rejected instead of quietly rebuilding
something else. A failed publication is withdrawn, not left half-written.

PDF attachments follow the parsing engine configured for the workspace,
report the stage they are in, and a truncated answer says it was
truncated with the counters that prove it. Providers are no longer
filtered out of the embedding picker on an unverifiable capability guess:
configure the model and test it. Visualize's temperature and token budget
are settings rather than literals. Notebook evidence no longer depends on
the chat session that produced it.

See assets/releases/ver1-6-10.md for the full notes, and the README
translations for the propagated prose.
2026-09-22 21:36:27 +08:00
ZQR1101
ae4bce956c fix(question): retry a starved quiz repair, and count it honestly
The quiz step asks for one JSON object out of a budget that reasoning
tokens also draw on, so a thinking model can spend the whole budget
thinking and leave nothing to parse. The repair round that exists to
rescue it is itself an LLM round and starves the same way, with nothing
after it left to ask again -- the learner got a "[Generation failed]"
placeholder, which is #1508's probabilistic missing question. Give that
round the retry _plan already has.

The envelope then hid the failure: `successful` counted
metadata["error"], a key the pipeline never writes, so an
all-placeholder quiz reported success=True / failed=0 to book blocks and
exam_mimic. Count `issues` instead -- it is recomputed after the repair
attempt, so what survives it is the question the learner actually got.
2026-09-21 21:29:38 +08:00
Frank_zhu
6fbed6c28e fix(research): recover report labels on finished reply (#1514)
Keep the streaming 64-char probe strict, then re-read a finished report
reply so an unclosed/over-wide fence or a matching ## n. heading no
longer kills the turn. Raise report_section max_tokens to 12000 and
turn reasoning off for report prose so first attempts stop starving.
2026-09-21 10:27:09 +08:00
Wubian111
ead57a7b2e fix: require selected mastery quizzes to complete delivery 2026-09-21 10:26:31 +08:00
Wubian111
4b8e9bacbb fix: reject unposted mastery card delivery claims 2026-09-21 10:26:31 +08:00
Bingxi Zhao (Frank)
da856ad670 release: v1.6.9
Ship folder-based workspaces and data migration, daily practice, redesigned
provider and model settings, and streaming conversation improvements.
Synchronize README translations and document the archive/permanent-delete
upgrade behavior in assets/releases/ver1-6-9.md.

Reduce initial JavaScript by deduplicating English resources and loading
animation features after hydration. Keep the existing route size budgets.
Update regression fixtures and browser audits for scoped URLs and the new
settings and learning interfaces.
2026-09-21 02:30:40 +08:00
Bingxi Zhao (Frank)
42d793839b Merge branch 'dev' into worktree-chat-engine-interleaved 2026-09-15 13:25:06 +08:00
Bingxi Zhao (Frank)
2e907c991e Merge remote-tracking branch 'origin/dev' into dev 2026-09-14 14:31:14 +08:00
cookerpapa
8e40d72364 fix(questions): fail a plan with no templates, warn on a short one (#1325)
Rebased onto dev, where c31bed8a now gives a planner that spent its budget
reasoning a second pass at lower effort. "The plan came back empty" is
therefore the state *after* a retry, not the first thing that happens, and
this narrows accordingly.

The two outcomes are not the same outcome. No templates is not a small quiz,
it is no quiz — phase 3 iterates the templates, which is how #1318 shipped a
zero-question result with no error anywhere. Fewer templates than asked is a
smaller quiz, and three real questions beat a failure, so that case keeps the
warning and proceeds. `_parse_plan` already caps the other direction, so
"more than asked" cannot reach here.

Two notices rather than one key doing both jobs: `plan_unusable` for the
failure, `plan_count_mismatch` keeping its "proceeding with what we have".

`test_plan_still_empty_after_the_retry_keeps_the_existing_behaviour` was
written as a placeholder naming this PR, pinning that the retry had not
quietly answered the question. It has an answer now, so it asserts it.

Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
2026-09-14 13:51:30 +08:00
Bingxi Zhao (Frank)
3d16b49588 test(agent-loop): stop asserting a budget the developer's config owns
`chat.responding.max_tokens` lives in agents.yaml, so a literal 8000 asserted
the shipped default rather than anything the loop does. It passes in CI, where
the workspace is seeded fresh, and fails on any machine whose agents.yaml sets
that stage — which is every machine that has ever tuned it.

What the round should report is the budget it actually asked for, so compare
against the pipeline's resolved one.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-14 02:14:14 +08:00
Gao Chenkai
3192757d45 fix: handle DeepSeek reasoning budget exhaustion (#1331)
* fix: handle DeepSeek reasoning budget exhaustion

* style: satisfy ruff format, the one thing CI was red on

`ruff format --check` on agent_loop.py, the Responses parser and the test
file that came with them. No behaviour change.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>

---------

Co-authored-by: Bingxi Zhao (Frank) <13051345080@163.com>
Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
2026-09-14 01:43:40 +08:00
evan188199-tech
24d3db124c fix(agent-loop): recover bounded reasoning-only finishes (#1402)
Co-authored-by: XZH <cto@xzh.ai>
2026-09-14 01:32:58 +08:00
LilZee
695414d3af fix(agents): ignore leading think blocks when extracting JSON (#1388) 2026-09-14 01:28:13 +08:00
Bingxi Zhao (Frank)
541b7f4f16 feat(chat): let a turn read as a running account instead of an answer with hidden working
Every round already streamed its text to the reader. The loop then took it
back: a round that called tools was marked narration, and the client moved
that prose out of the answer and into a collapsed block pinned to the top of
the message. The reader watched a sentence appear and vanish, and what was
left was an answer with no account of how it was reached.

That behaviour came from one field doing two jobs. ``call_role`` said both
where the turn was and whether the text counted, so "more work follows" and
"hide this" could not be told apart — and three separate exceptions had grown
to say "actually, show this one" for DSML, truncation and mastery.

Split the two facts. ``call_role`` keeps the phase. A new ``answer_visible``
carries visibility, true for every ordinary round, false only where a
capability's finish guard retracts a round it rejected. The three exceptions
disappear with the default they were fighting.

The client then lays the message out in the order it was written: the sentence
that introduced a step, the step's own row beneath it, what the next round
said below that. A settled turn is restored from an event preview that carries
no text, so tool calls now record how much of the answer had been written when
they ran, and the stored body is laid back out around them.

The prompt asks for the commentary this depends on, and says the closing
answer should not replay it.
2026-09-11 16:49:40 +08:00
Bingxi Zhao (Frank)
a3ff561cca fix(errors): finish the sweep for failure notices that hide their cause
#1356 was reported as "retrieval hides embedding connectivity failures".
The adapter had always raised a ConnectionError naming the endpoint and
the remedy; the text was discarded a layer above, where the template had
no placeholder to put it in. 4e816d79 converged the tool-dispatch half.
This is the audit for the rest of it.

Two scans, both over the AST rather than by eye: handlers that raise or
return a generic literal without touching the exception they caught, and
handlers that log the cause but hand the user a literal. The result is
smaller than expected and worth recording — the codebase is mostly
honest here, and the sites that do hide a cause almost all do it on
purpose. `knowledge.py` refuses to echo an upstream message from a
credential-bearing flow, and says so at the site; WeCom onboarding does
the same. Those stay.

Three did not have a reason:

* the agent loop's forced finish told the reader "a step failed" while
  the caller was logging the exception on the line above;
* the question pipeline's tool summarizer did the same, in the same
  shape, two lines apart;
* the update check turned every transport failure into "Unable to check
  for updates", which cannot distinguish being offline from a proxy that
  blocks github.com. The release URL is public and carries no
  credentials, so there was nothing to protect.

All three now carry what they already knew, through the same `{error}`
placeholder 4e816d79 established, in both locales.

The test is the durable half. A key the runtime formats with a cause must
have a slot for it in every locale that defines it — the exact drift that
let #1356 ship, where the code passed a cause the template could not
accept and nothing complained.

6925 passed, 24 skipped.
2026-09-11 12:43:41 +08:00
Bingxi Zhao (Frank)
c31bed8aeb refactor(llm): one rule for a structured call a reasoning model starved
Four defects this month were the same failure: a step asks a model for a
whole payload in one shot, the model spends its whole max_tokens on
hidden thinking, and the provider returns a truncated body or none at
all — with no error. Book's spine collapsed to a single "Overview"
chapter (#1316), the quiz plan emitted zero templates (#1318), the
non-streaming path handed the scratchpad back as the answer (#1352).

Each fix grew its own retry. Book got `book/json_retry.py`; question got
`LabeledStepResult.reasoning_only`; research got nothing, so its
decompose step still degraded a topic to one sub-topic in silence, and
its report outline still lost the whole report structure.

Moves the rule out of `book/` — it was never Book's — into
`services/llm/structured_retry.py`, and points it at the streaming-side
detector so the two halves read as one rule: two ways to notice a budget
spent on hidden tokens, one remedy, which is to ask again with thinking
turned down.

Applies it to research's two one-shot payloads, which needed the step
wrapper to accept a per-call reasoning effort the way question's already
did.

The generic entry point takes the caller's own `is_usable` rather than
imposing the object shape. Research's decompose accepts a bare array of
sub-topics; judging that unusable would have retried a good answer and
then discarded it — a regression the object-shaped helper would have
caused as the only entry point. The object form still guarantees a dict,
because its callers index the result directly.

6902 passed, 24 skipped.
2026-09-11 12:43:41 +08:00
Bingxi Zhao (Frank)
ed85fe9bc2 refactor(config): put every LLM budget in agents.yaml, one entry per stage
A capability that makes several different LLM calls cannot be described
by one max_tokens: the step emitting a whole JSON plan and the step
writing one paragraph need different room. `chat` has said so since it
grew `exploring`/`responding`. `question` and `research` said the same
thing in module constants instead, where no user could reach them.

The cost of that was not theoretical. `capabilities.question.max_tokens`
governed exactly one of question's six LLM calls — the follow-up agent —
while the pipeline's five steps used constants that ignored it. The plan
step's constant sat below the capability's own ceiling, which is how
#1318 shipped a step that could spend its whole allowance thinking and
emit zero templates without an error. `EXPLORE_FINISH_MAX_TOKENS` had
been dead since it was written.

Generalises the seam that already worked rather than adding a parallel
one: `get_chat_params` becomes `get_capability_params(capability)` over a
table of per-stage defaults, and `question`, `research` and
`explore_context` get tables of their own holding the numbers they
already ran on. The pipelines resolve once in `__init__` beside the
budget they already cached. Unknown keys are dropped, so a misspelled
stage cannot become a silent no-op that reads like a setting.

The rule this establishes, stated in the tables: **agents.yaml owns every
LLM budget** (temperature, max_tokens, per stage); **main.yaml owns
runtime behaviour** (iteration caps, timeouts, retry policy, modes). A
budget in main.yaml is a bug. `tool_summarizer.max_tokens` still reads
its main.yaml value first so nobody's existing configuration moves; new
installs reach the same number through agents.yaml like everything else.
GraphRAG's reachability probe is the one documented exemption — tuning it
could only make a health check lie.

Seeds are derived from the same tables the pipelines read, because two
lists of the same numbers is how a default and its seed drift apart —
the shape of #1316. Tests pin both halves: the shipped values, and that
every stage in code is present in the seeded file.

No behaviour change: every default is the constant it replaced.
6902 passed, 24 skipped.
2026-09-11 12:43:41 +08:00
Bingxi Zhao (Frank)
3d2648d01b fix(research): stop the settings layer shadowing the tool policy defaults
The follow-up to #1357 moved ResearchPipeline's defaults to a 240s
ceiling with retries off, but `_MAIN_YAML_RUNTIME_DEFAULTS` still held
60s / 3 retries. That table is the fallback used when a research
settings payload is written, so a user who merely opened research
settings and saved — without touching either field — persisted 60/3 into
main.yaml and the pipeline default became unreachable from then on.

Same shape as #1316, where a section missing from the config map meant a
4096 token budget no user could raise. A default that a layer above
silently overwrites is not a default, so pin the invariant in a test
rather than leaving the two numbers to drift again.
2026-09-10 23:56:42 +08:00
Bingxi Zhao (Frank)
253dc0b284 follow-up to #1357: a ceiling for a stalled provider, not for a slow tool
60s cancels research work that was going to finish — one rag call against
a LightRAG or GraphRAG index makes its own LLM calls before returning, and
search-then-fetch waits on someone else's site — and each of the three
retries then pays the full timeout again. 240s is the ceiling
geogebra_analysis already uses for the same reason; retries default to 0 so
only a caller who knows its tools are flaky, not slow, pays for a second
attempt. Both remain configurable under researching.

Pins the pair in a test: the policy tests pass whatever they configure, so
nothing held these two numbers.

(cherry picked from commit 389fe3f0daf1abb4eddc87be84485d47982b84a3)
2026-09-10 23:55:18 +08:00
Bingxi Zhao (Frank)
4e2f088548 merge: bring 19 reviewed PRs from origin/dev into dev
Resolves two collisions with the fixes committed locally tonight:

* book/blocks/_llm_writer.py — #1366 threaded a reasoning_effort
  through llm_json while 5ac8e2c9 replaced this file's private
  _json_has_expected with the shared json_payload_is_usable.
  Taking either side alone breaks: origin/dev's calls a helper that no
  longer exists, ours drops the caller's explicit effort. Kept the shared
  helper and the threading, and the retry now reuses an explicitly given
  effort so a round deliberately run without thinking cannot re-enable it.

* runtime/agentic/tool_dispatch.py — #1357 added tool_timeout /
  tool_max_retries to execute_tool_call in the same parameter list where
  4e816d79 renamed unknown_error_message_factory (tool) to
  tool_error_message_factory (tool, error). Both are needed: the
  dispatcher already passes the timeout pair through, and every call site
  in the tree now uses the renamed factory.
2026-09-10 23:52:04 +08:00
evan188199-tech
30e0f7c3a2 fix(research): enforce tool timeout and retry policy (#1357)
Co-authored-by: XZH <cto@xzh.ai>
2026-09-10 23:45:30 +08:00
Albertanda
08963e29ab fix(geogebra): repair image analysis that crashed before any model call (#1362)
* fix(geogebra): repair image analysis that crashed before any model call

Every invocation of the ``geogebra_analysis`` tool died with a TypeError
before reaching a model: ``_call_vision_llm`` passed a ``verbose=False``
kwarg that ``BaseAgent.stream_llm`` does not accept (the signature has no
``verbose`` parameter and no ``**kwargs`` fallback). Image understanding —
the only path that turns a problem figure into GeoGebra commands — was
therefore broken end to end, in both chat and deep_solve.

Two repairs in the vision solver agent:

* drop the nonexistent ``verbose=`` kwarg so the call reaches the model;
* make ``_extract_json`` tolerate what reasoning vision models actually
  return: a ``<think>`` preamble (e.g. Qwen3-VL-*-Thinking), prose after
  the JSON object, multiple fenced blocks (the last one wins), and bare
  tail JSON. The comment and trailing-comma tolerance of the original
  parser is preserved.

Regression coverage: parametrized ``_extract_json`` cases for the shapes
above, plus a test asserting ``_call_vision_llm`` forwards no ``verbose``
kwarg while still building the multimodal ``image_url`` message.

* fix(geogebra): bound a stalled vision analysis with a 240s timeout

An unbounded ``await agent.process(...)`` lets a stalled provider hang the
whole turn. Reasoning VL models legitimately take minutes on hard figures,
so the bound is generous (240s): it only converts a silent hang into a
loud, actionable failure ("retry, or describe the figure in text") instead
of leaving the learner staring at an empty response.
2026-09-10 23:44:08 +08:00
Bingxi Zhao (Frank)
0027051b32 fix(question): tell a starved plan apart from an empty one, and retry it
Ask for a quiz with a reasoning model and sometimes one question arrives,
sometimes none, with nothing in the UI and one `LLM returned empty
response` in the log (#1318). Reproduced on both a 35B llama.cpp build
and a 27B vLLM one, so it is not a model or a backend.

The plan step is a single labeled call that must emit a whole JSON object
of templates, and it had the tightest budget in the file — 2000, below
even the 4096 the `question` capability ships with. A reasoning model
pays for its hidden tokens out of that same allowance, so on a rich
exploration trace it can spend the lot before the label. `PLAN_MAX_TOKENS`
is now 6000: the plan itself is a few hundred tokens and the rest is room
to think in.

A bigger number is not the fix, because no number is large enough for
every model. The fix is that the step now says what happened.
`run_labeled_step` strips the scratchpad on the way out — deliberately,
so a truncated one never reaches a reader — which left "starved
mid-thought" and "the model genuinely said nothing" as the same empty
string. `_parse_plan` read it as a plan of zero templates and phase 3,
which iterates them, emitted no questions and no error.

`LabeledStepResult.reasoning_only` separates them: no label ever arrived,
no text, no tool calls, and the model demonstrably did reason (inline
`<think>` or the provider's own channel). Tool calls disqualify it — that
round acted, it just did not narrate, and re-asking would repeat the
call. The plan step spends the signal on one more attempt with thinking
turned down, which is the same escape hatch Book already uses; its
`RETRY_REASONING_EFFORT` moved to `services/llm/reasoning_params` so the
choice of level, and why it is "low" and not "minimal", is stated once.

Every labeled step in the codebase now carries the flag, so `EXPLORE`,
`QUIZ` and `REPAIR` — which share the same exposure on smaller budgets —
are at least diagnosable. Whether an under-filled plan should warn or
fail is a separate question and is deliberately left where it was.
2026-09-10 23:05:52 +08:00
Bingxi Zhao (Frank)
04040a2c06 release: v1.6.5
Ship a content workspace you choose, one exec tool for every language,
Mastery Path modes that gate its tools, and Settings that grades
readiness instead of listing faults.

Release notes: assets/releases/ver1-6-5.md
2026-09-06 13:46:29 +08:00
Bingxi Zhao (Frank)
93df3d48b7 release: v1.6.4
Ship lighter isolated runtimes, richer Books and Mastery flows,
Reading/session polish, and explicit model API capabilities.

Release notes: assets/releases/ver1-6-4.md
2026-09-03 01:38:54 +08:00
Bingxi Zhao (Frank)
fc39543bc0 feat: integrate frontend backend and canonical routes 2026-09-01 22:24:29 +08:00
Bingxi Zhao (Frank)
02ba56793e chore: checkpoint backend stabilization workspace 2026-09-01 21:28:15 +08:00
Bingxi Zhao (Frank)
3c51bb9ed9 Merge pull request #1021 from Zuan0/research-interruption-recovery
# Conflicts:
#	web/context/UnifiedChatContext.tsx
2026-08-31 19:04:16 +08:00
Bingxi Zhao (Frank)
1b7643c558 Merge pull request #1067 from evan188199-tech
# Conflicts:
#	deeptutor/agents/chat/agent_loop.py
2026-08-31 19:00:32 +08:00
Bingxi Zhao (Frank)
8cfec4e685 Merge pull request #1033 from contributor
# Conflicts:
#	deeptutor/tools/prompting/hints/en/exec.yaml
#	deeptutor/tools/prompting/hints/zh/exec.yaml
2026-08-31 18:36:05 +08:00
Bingxi Zhao (Frank)
3dc372f551 release: v1.6.2 — immersive watching and extensible visualizers
Add synchronized YouTube learning, a plugin-driven visualizer catalog, and Hermes, OpenClaw, and DeepSeek agent harnesses. Refresh Reading, Knowledge, Partner status, guided updates, documentation, translations, and release notes for v1.6.2.
2026-08-31 01:13:07 +08:00
Bingxi Zhao (Frank)
ce7c2dc2dc release: v1.6.1 — one key, one navigator, one sidebar you arrange
Model configuration was one layer replicated seven times: every service
stored its own profile with its own credentials, so a single OpenRouter
key had to be pasted into five separate pages. This release splits that
in two — a **connection** holds one vendor credential and links it down
to every service that vendor can serve, and a **task model** takes the
calls nobody asks for (naming a conversation, writing the composer's
starting points) off the model picked for actual reasoning. Both are
opt-in; existing per-service profiles resolve exactly as before.

Around that: Settings drops the card grid for a persistent searchable
navigator whose landing page answers "what state am I in" instead of
repeating the directory; Mastery Path files study conversations under
their topic and opens them in the tutor rather than dropping them on
/home; the sidebar folds features into More and reorders by drag; the
reading companion is rebuilt from /home's own chat components; and the
LightRAG engine talks to the SDK directly, so its extra no longer drags
MinerU in transitively.

Also back-merges PR #1041 (Anthropic SDK 1.x temperature via extra_body)
and PR #741 (owner-only auth secret/token files), which had been merged
straight into main and never flowed back to dev.

Release notes: assets/releases/ver1-6-1.md
Gates: pre-commit 15/15, ruff clean, pytest 5802 passed, web 450 node
tests, eslint 0 errors, docs build clean.
2026-08-30 13:19:42 +08:00
Bingxi Zhao (Frank)
fc0be68d6f wip: course / partner groups in progress 2026-08-29 22:29:53 +08:00
XZH
a32a9a98a1 fix(llm): persist DeepSeek reasoning across turns 2026-08-28 03:09:00 -07:00
zhou2030109-glitch
b342b63b7a fix: align Windows exec runtime and search readiness 2026-08-27 17:17:03 +08:00
zhou2030109-glitch
bb6b0cd629 fix: make deep research resilient to interrupted streams 2026-08-27 10:11:00 +08:00
diffaudit-review
3709c9e854 feat: add selection tutor and course workspaces 2026-08-26 02:25:23 +08:00
Bingxi Zhao (Frank)
11c0a1ed68 fix(chat): preserve ask-user protocol across fallbacks and history 2026-08-26 02:08:46 +08:00
SeleiXi
5c45c38e4a fix: make ask questions card deterministic 2026-08-26 02:08:33 +08:00
SeleiXi
4c9df02a97 feat: add context-aware ask questions mode 2026-08-26 02:07:39 +08:00
Bingxi Zhao (Frank)
ce3532b7f8 fix(mastery): validate guarded finishes before streaming 2026-08-26 01:52:26 +08:00
XZH
b4bbe20e87 fix(mastery): redirect plain-text quizzes to cards 2026-08-26 01:52:26 +08:00
zh769394
61a32bd626 fix: improve Windows cross-platform compatibility across runner, tools, and tests
- Guard resource module import in runner server for non-POSIX platforms
- Use POSIX relative path format in ListDirTool for consistent path separators
- Specify UTF-8 encoding in Weixin channel state loading and prompt tests to avoid GBK UnicodeDecodeError
- Use as_posix() in path assertion tests for cross-platform compatibility
2026-08-26 00:29:52 +08:00
john00010
dcbb1d3393 fix(sandbox): support Windows code execution (#964)
* fix(sandbox): support Windows code execution

* refactor(sandbox): vary only the shell clause in the workspace note

The Windows branch duplicated the whole workspace paragraph, so the note
existed in four near-identical copies (zh/en x posix/windows) that would drift
apart on the next edit. Only the "how do I get a script into a file" clause
actually depends on the host shell, so vary that clause and keep one template
per language.

Also prefer `pwsh` (PowerShell 7+) when it is on PATH — it defaults to UTF-8
and is the version still receiving updates; the generated commands are written
in 5.1-compatible syntax, which 7 accepts too. And hoist `import sys` to module
scope now that two methods need it.

Adds the tests this note never had: each host gets the syntax that works there
(a Bash heredoc is a syntax error in PowerShell, and the model would silently
produce no file), and the host-independent half stays byte-identical.

---------

Co-authored-by: Frank <bingxizhao@novix.science>
2026-08-24 16:52:04 +08:00
Bukely_
07abbd7326 feat(pageindex): add OSS knowledge bases and reasoning-based retrieval (#907)
Adds PageIndex OSS as a knowledge-base type and moves PageIndex retrieval from traditional RAG to reasoning-based retrieval: a small workflow-owned agent loop reads the document tree instead of going through the built-in MCP server, which this removes.
2026-08-20 00:35:15 +08:00
alanguan73
6de38f519f feat(chat): honor end_loop metadata after ask_user resume (#924)
When a loop capability sets context.metadata['end_loop'] during on_user_resume, skip further LLM rounds so the capability owns the final message. The user's reply still reaches the transcript — only the work that feeds it back to the model is skipped.
2026-08-20 00:29:26 +08:00
LamXwah
de1e89bba0 fix(chat): inject current date into runtime context (#910)
Without the real date the model resolved 'today' from its training cutoff when composing web_search queries. Inject a day-granularity runtime_context block so the system prompt stays byte-stable within a day and keeps prompt-cache hits.
2026-08-19 23:37:22 +08:00
Bingxi Zhao
1de14e8584 fix(chat): preserve provider stream failure boundaries (#890) 2026-08-17 02:13:23 +08:00
Bingxi Zhao
f12d6a8a1f fix: recover model catalog and provider transport (#888) 2026-08-17 01:58:23 +08:00