kimi-code/docs/zh/reference
Haozhe 5d6ff022b1
feat(agent-core): drop default timeouts for print-mode background tasks (#1737)
* feat(agent-core): drop default timeouts for print-mode background tasks

- add `bash_task_timeout_s` config under [background] (0 = no timeout),
  covering the background Bash default and the re-arm after a foreground
  command is moved to the background on timeout
- allow `[subagent] timeout_ms = 0` (no timeout) and thread it through
  Agent/AgentSwarm task registration and the swarm batch timer
- fill both with 0 in print-mode config defaults so `kimi -p` never kills
  background work by wall-clock and only the model stops a task;
  interactive defaults are unchanged
- sync the Bash tool description/parameter text with the effective
  default and update user docs (en/zh) plus changeset

* test(agent-core): satisfy KimiConfig providers requirement in print-defaults tests

* fix(agent-core): clear the foreground deadline on detach when the background timeout is disabled

`detach()` only re-arms when `detachTimeoutMs` is defined, so passing
`undefined` with `bash_task_timeout_s = 0` kept the armed foreground
deadline and a manually detached command was still killed at its
foreground timeout. Pass `0` instead so the reset clears the timer.
Caught by Codex review on #1737.
2026-07-15 14:35:32 +08:00
..
keyboard.md feat(tui): show compaction summary with Ctrl-O (#1346) 2026-07-06 13:32:37 +08:00
kimi-acp.md mcp suport sse (#744) 2026-06-14 18:04:26 +08:00
kimi-command.md docs(server): document --dangerous-bypass-auth and --keep-alive flags (#1373) 2026-07-04 18:33:22 +08:00
slash-commands.md feat: add check-kimi-code-docs builtin skill (#1727) 2026-07-15 11:42:47 +08:00
tools.md feat(agent-core): drop default timeouts for print-mode background tasks (#1737) 2026-07-15 14:35:32 +08:00