Tree sync afbc0fb71032 → 8a14c91d8887: cleaner non-interactive agent framing, safer /delete teardown, and a configurable hard exit timeout when quit hangs.
Changelog
[changed] Non-interactive sessions tell the agent there is no human operator in the session
[changed] /delete stops any running turn, background tasks, and subagents before wiping session history
[new] GROK_EXIT_TIMEOUT_SECS — seconds to wait after quit before force-exit if teardown hangs (default 20; 0 disables; a hard exit follows 5s later)
[changed] grok mcp enable / disable no longer treat legacy managed grok_com_* names as known without a local entry
Agent & tools
System prompt template: non-interactive branch now states there is no human operator in the session (interactive wording unchanged)
/delete: teardown of in-flight work is part of the documented delete path, not only history wipe and navigation back to welcome/dashboard
Docs
User guide /delete: documents stop of running turn, background tasks, and subagents before history wipe
Configuration: documents GROK_EXIT_TIMEOUT_SECS
MCP servers: enable/disable “known names” list drops legacy managed grok_com_* (no local entry required)
Under the hood
Exit-timeout path in the pager app and harness tests so hung teardown cannot leave the process stuck indefinitely
Session load barrier and session storage replay support
Skill discovery path-suggestion helpers
MCP doctor isolation test coverage
Memory-trace signal topology / wait helpers for diagnostics
If quit sometimes hangs in your environment, set GROK_EXIT_TIMEOUT_SECS (default 20) or 0 to disable the force-exit path; see the configuration guide
Callers that relied on grok mcp enable / disable accepting bare legacy grok_com_* names without a local definition may need an explicit config entry or another discovery source