qwen-code/packages
Nothing Chan 87cad6f1ae
Some checks are pending
E2E Tests / E2E Test (Linux) - sandbox:docker (push) Waiting to run
E2E Tests / E2E Test (Linux) - sandbox:none (push) Waiting to run
E2E Tests / E2E Test - macOS (push) Waiting to run
feat(memory): make background memory agent timeouts configurable (#6459)
* feat(memory): make background memory agent timeouts configurable

Adds a memory.agentTimeoutMinutes setting that overrides the hardcoded
max runtime of the four background memory agents (extraction, dream,
remember, skill review). Unset keeps each agent's built-in default
(2-5 minutes); 0 disables the time limit entirely.

Local LLM setups load large extraction prompts far slower than hosted
models, so the fixed 2-minute extractor budget times out before the
context even finishes loading — and each retry carries a longer
conversation, making the next timeout more likely.

Fixes #6308

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

* fix(memory): address review — wire agentTimeoutMinutes to skill review, clamp negatives, add tests

The auto-skill scheduling path always passed an explicit timeoutMs, so
the new setting never reached the skill review agent; drop the redundant
pass-through so the planner's config fallback applies. Clamp negative
settings values at the Config constructor (schema validation only runs
on interactive edit paths). Add positive override tests for the dream,
remember, and skill review planners, and reduce the settings.md diff to
the single new table row.

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

* test(memory): cover negative-clamp and remember default-timeout paths

Review follow-up: assert the Config constructor treats a negative
memory.agentTimeoutMinutes as unset, and that the remember planner keeps
its built-in 5-minute default when nothing is configured.

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

---------

Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
Co-authored-by: qwen-code-dev-bot <qwen-code-dev-bot@users.noreply.github.com>
2026-07-08 16:47:07 +00:00
..
acp-bridge chore(release): v0.19.8 (#6549) 2026-07-08 15:51:03 +00:00
audio-capture chore(release): v0.19.8 (#6549) 2026-07-08 15:51:03 +00:00
channels chore(release): v0.19.8 (#6549) 2026-07-08 15:51:03 +00:00
chrome-extension chore(release): v0.19.8 (#6549) 2026-07-08 15:51:03 +00:00
cli feat(memory): make background memory agent timeouts configurable (#6459) 2026-07-08 16:47:07 +00:00
core feat(memory): make background memory agent timeouts configurable (#6459) 2026-07-08 16:47:07 +00:00
cua-driver fix(cua-driver): migrate Windows scripts + README rewrite (#6515) 2026-07-08 06:07:11 +00:00
desktop fix(desktop): preserve glued automation history records (#6344) 2026-07-05 23:53:49 +00:00
mobile-mcp chore(release): v0.19.8 (#6549) 2026-07-08 15:51:03 +00:00
sdk-java fix(core): Align MCP OAuth guidance and docs (#5589) 2026-06-24 07:09:53 +08:00
sdk-python doc[sdk-python] Expand Python SDK usage documentation (#3995) 2026-05-12 15:27:00 +08:00
sdk-typescript feat(cli): Enable multi-workspace session routing (#6511) 2026-07-08 10:06:31 +00:00
vscode-ide-companion feat(memory): make background memory agent timeouts configurable (#6459) 2026-07-08 16:47:07 +00:00
web-shell chore(release): v0.19.8 (#6549) 2026-07-08 15:51:03 +00:00
web-templates chore(release): v0.19.8 (#6549) 2026-07-08 15:51:03 +00:00
webui chore(release): v0.19.8 (#6549) 2026-07-08 15:51:03 +00:00
zed-extension chore(deps): upgrade ink 6.2.3 → 7.0.2 + bump Node engine to 22 (#3860) 2026-05-11 17:29:50 +08:00