- [new]
--background-wait-timeoutflag sets the maximum seconds to wait for background work (bash/monitor tasks, non-persistent subagents) after the first agent turn ends in headless mode. - [new]
--no-wait-for-backgroundflag causes the CLI to exit immediately after the first agent turn without waiting for pending background work (headless only). - [changed] Shell completions for bash, zsh, fish, elvish, and PowerShell now include the two new background-wait flags with appropriate descriptions.
- [changed]
docs/user-guide/20-background-tasks.mdupdated to reflect the revisedget_command_or_subagent_outputusage (no moreblock=trueparameter;timeout_msis the primary way to wait) and related guidance on polling.
Under the hood
- Bundled content manifest and version metadata updated to 0.2.58.
- Example configuration in
.grok/README.mdnow shows a 256k context window for the Grok Build proxy model.
Upgrade notes
No manual steps required. The new flags are optional and only affect headless (-p) usage.