Skip to content
Proposals/Reorder queued prompts and resume child sessions
proposaldeveloperP3Worth a lookxAI Grok CLI (Grok Build)

Reorder queued prompts and resume child sessions without 404 in Grok CLI

Grok CLI a5589e9 lets any queued item move up/down, never lets send-now destroy earlier queues, registers restored child sessions for --resume, collapses long bash permission bodies behind Ctrl-F, and shows non-200/disk errors as clean TUI banners.

Why this loop

Grok CLI a5589e9 (commit a5589e958437d79e13db026eedcb1720bffd4063, Source-Revision 4d6d11372ab8f73026a78c45a7b7e7b1310eb39f) fixes queue and resume integrity in the TUI. Any queued item can move up and down, send-now never silently destroys an earlier queued message, and plain queued prompts stay visible. Restored child sessions are registered so --resume does not 404, and /resume search includes sessions already loadable via --resume. Parent work continues after a background spawn. Long bash permission bodies collapse behind Ctrl-F; Auto-mode security findings are contextualized. Non-200 API errors show as clean TUI banners, disk-full is surfaced during live sessions, and Cloudflare 52x plus other 5xx sampling errors retry. Dashboard attach re-points on /new, /delete from attach returns to the dashboard, and dashboard exit/quit quits the CLI. Adopt this SHA before depending on multi-prompt queues or nested --resume.

Proposed actions

  1. Pin the running Grok CLI to version a5589e9 (commit a5589e958437d79e13db026eedcb1720bffd4063, Source-Revision 4d6d11372ab8f73026a78c45a7b7e7b1310eb39f) before any workflow that reorders queues, uses send-now, or --resume on a restored child.
  2. While a turn is in flight, enqueue at least two prompts, move any queued item up then down, keep the plain queued text visible, then send-now and confirm the earlier queued message is still present and was not silently destroyed.
  3. After a background spawn restores a child session, continue in-flight parent work, run --resume with that child id and confirm it does not 404, then open /resume and confirm search lists the same session --resume can load.
  4. When a long bash permission card appears, press Ctrl-F to collapse the body; Tab once on every blocking card (one Tab contract). Read contextualized Auto-mode security findings before approving; use the full-script permission showcase as the review surface.
  5. From the dashboard: expect a toast when a session-only modal opens; /delete from dashboard attach must return to the dashboard; /new must re-point dashboard attach; dashboard exit/quit must quit the CLI. Treat non-200 API errors and disk-full during live sessions as clean TUI banners; Cloudflare 52x and other 5xx sampling errors retry.

Agent prompt

Paste into your agent or query via MCP (get_agent_prompt) — free, no extra AI cost

AGENTS.md / CLAUDE.md / GEMINI.md rule update

DevAgentRadar → Repo Harness Rule Patch

Goal: update our repository's permanent harness instructions based on this release.

Update the file that tool actually reads. Do not dump everything into one file.

  • Claude Code → CLAUDE.md plus .claude/ (skills, hooks, settings, agents, commands). It does not read AGENTS.md natively; start CLAUDE.md with @AGENTS.md.
  • Codex, Copilot, Cursor, Factory Droid, Grok Build, Roo Code, Goose, OpenCode, Amp, Zed, Aider → AGENTS.md.
  • Gemini CLI / Antigravity → GEMINI.md. AGENTS.md only if context.fileName is set.
  • Cursor glob-scoped rules → .cursor/rules/*.mdc (plain .md is ignored), not a second constitution.
  • Codex MCP → .codex/config.toml, not .mcp.json.
  • Copilot extra instructions → .github/copilot-instructions.md; custom agents → .github/agents/.
  • Windsurf → .windsurf/rules (do not assume AGENTS.md).
  • Cline → .clinerules.
  • Procedures → a skill (SKILL.md). Enforcement the model must not skip → a hook. Isolated roles → subagents.
  • Do not fork the same rule into three tool files.

Context

Assistant: xAI Grok CLI (Grok Build) Proposal: Reorder queued prompts and resume child sessions without 404 in Grok CLI Summary: Grok CLI a5589e9 lets any queued item move up/down, never lets send-now destroy earlier queues, registers restored child sessions for --resume, collapses long bash permission bodies behind Ctrl-F, and shows non-200/disk errors as clean TUI banners. Primary source: https://github.com/xai-org/grok-build/commit/a5589e958437d79e13db026eedcb1720bffd4063

Why it matters

Grok CLI a5589e9 (commit a5589e958437d79e13db026eedcb1720bffd4063, Source-Revision 4d6d11372ab8f73026a78c45a7b7e7b1310eb39f) fixes queue and resume integrity in the TUI. Any queued item can move up and down, send-now never silently destroys an earlier queued message, and plain queued prompts stay visible. Restored child sessions are registered so --resume does not 404, and /resume search includes sessions already loadable via --resume. Parent work continues after a background spawn. Long bash permission bodies collapse behind Ctrl-F; Auto-mode security findings are contextualized. Non-200 API errors show as clean TUI banners, disk-full is surfaced during live sessions, and Cloudflare 52x plus other 5xx sampling errors retry. Dashboard attach re-points on /new, /delete from attach returns to the dashboard, and dashboard exit/quit quits the CLI. Adopt this SHA before depending on multi-prompt queues or nested --resume.

Suggested actions

  1. Pin the running Grok CLI to version a5589e9 (commit a5589e958437d79e13db026eedcb1720bffd4063, Source-Revision 4d6d11372ab8f73026a78c45a7b7e7b1310eb39f) before any workflow that reorders queues, uses send-now, or --resume on a restored child.
  2. While a turn is in flight, enqueue at least two prompts, move any queued item up then down, keep the plain queued text visible, then send-now and confirm the earlier queued message is still present and was not silently destroyed.
  3. After a background spawn restores a child session, continue in-flight parent work, run --resume with that child id and confirm it does not 404, then open /resume and confirm search lists the same session --resume can load.
  4. When a long bash permission card appears, press Ctrl-F to collapse the body; Tab once on every blocking card (one Tab contract). Read contextualized Auto-mode security findings before approving; use the full-script permission showcase as the review surface.
  5. From the dashboard: expect a toast when a session-only modal opens; /delete from dashboard attach must return to the dashboard; /new must re-point dashboard attach; dashboard exit/quit must quit the CLI. Treat non-200 API errors and disk-full during live sessions as clean TUI banners; Cloudflare 52x and other 5xx sampling errors retry.

Config surfaces this release may change

  • background and headless runs — check your repo before applying

After you finish

Do not report this as applied to DevAgentRadar. You cannot write the visitor's loop.

Tell the human: open https://devagentradar.com/proposals/xai-grok-cli-a5589e9-reorder-queued-prompts-and-resume-child-sessions-wi and mark Applied, Skipped, or Failed. Proposal id: 0ae67748-f113-41ca-93ba-10e2bf91e86d

Instructions:

  1. Read the existing context files and settings for the tools in this repo.
  2. Draft an explicit Git diff. Update ONLY agent harness rules or tool configuration.
  3. Call out deprecated flags, obsolete habits, or changed permission boundaries.
  4. Do not touch application logic.

Start with the proposed diff and say which layer and which tool's file it belongs in.

agentmcpsecuritycliRelease source ↗

Your loop

This browser · no sign-in · not shared as “you”

After you run the prompt

Only you can mark this. Agents cannot write your loop.

Your decision stays on this device. A public tally appears after a few votes.

Originating release signal

xAI Grok CLI (Grok Build)a5589e9Aug 5, 2026

Synced from monorepo

Synced from monorepo · Synced from monorepo · Changes: · Retry Cloudflare 52x and other 5xx sampling errors · Show non-200 API errors as clean TUI banners · Sandbox: provision plan, durable metadata, and repos manifest types · Refresh shell leader docs to match current code · Let any queued item move up and down · Toast when session-only modals open from the dashboard · Pin markdown palette to ANSI16 hues · Fix /resume search missing sessions loadable via --resume · Only paint auto recap when the CLI is idle · Collapse long bash permission bodies behind Ctrl-F · +25 more changes
Verified excerpt — the source's own words

Synced from monorepo

Synced from monorepo

Changes:

  • Retry Cloudflare 52x and other 5xx sampling errors
  • Show non-200 API errors as clean TUI banners
  • Sandbox: provision plan, durable metadata, and repos manifest types
  • Refresh shell leader docs to match current code
  • Let any queued item move up and down
  • Toast when session-only modals open from the dashboard
  • Pin markdown palette to ANSI16 hues
  • Fix /resume search missing sessions loadable via --resume
  • Only paint auto recap when the CLI is idle
  • Collapse long bash permission bodies behind Ctrl-F
  • Full-script permission showcase
  • Contextualize Auto-mode security findings
  • Always emit mouse/paste resets at teardown
  • Keep plain queued prompts visible
  • Mouse copy never drops a wide (CJK) grapheme at a selection boundary
  • Show disabled MCP stubs only when re-enableable
  • Keep syntax styles on wrapped diff lines
  • Improve per-turn dashboard summary prompt (reply substance)
  • Report the mode the session is actually in
  • Dashboard exit/quit quits the CLI
  • A send-now never silently destroys an earlier queued message
  • Reflow narrow markdown tables in-cell
  • Honor highlighted slash command on Enter

Excerpt ends here — this release continues at the source ↗.

Primary source ↗