fix(subagents): allow explicit write-role edits

This commit is contained in:
Hunter Bown
2026-05-21 00:54:27 +08:00
parent ad122fd6f8
commit 9f0ff4be93
3 changed files with 272 additions and 5 deletions
+17
View File
@@ -110,6 +110,23 @@ cancelled records persist for inspection but don't occupy a slot.
Agents that lost their `task_handle` (e.g. across a process
restart) also don't count against the cap.
## Per-step API timeout (#1806, #1808)
Each sub-agent step wraps its DeepSeek `create_message` call in a
per-step timeout so a single stuck request can't pin the parent's
completion wakeup channel indefinitely. The default is `120` seconds,
which matches the legacy hardcoded value. Long-thinking children that
legitimately exceed that, for example heavy plan or review work behind
`agent_open`, can extend the timeout in `~/.deepseek/config.toml`:
```toml
[subagents]
api_timeout_secs = 900 # 15 minutes; clamped to 1..=1800
```
Values are clamped to `1..=1800`. `0` and `unset` keep the legacy
`120` second default, so existing installs see no behavior change.
## Lifecycle
Each opened session produces a record that progresses through: