Files
claude-code-system-prompts/system-prompts/tool-description-repl-script-and-shell-timeouts.md
T
2026-11-18 16:43:32 -07:00

848 B

A script is stopped 600000 ms after it starts, not counting the time spent waiting on permission prompts, and a command still running then is stopped too and its output is lost. So give a long command a timeout that ends well before that. At its own timeout a command moves to the background and keeps running (one that starts with sleep is stopped instead, and so is every command if background tasks are disabled): the await resolves without throwing, with exitCode null, and running names the task and the file its output streams to, so read that file instead of running the command again.