Native /goal commands are rejected by the existing Steer action #18957
Problem#
The existing Steer action rejects attachment-free native /goal commands before provider capability routing, with:
Goal commands must run as a separate turn. Queue it or wait for the active turn to finish.
This affects direct steering and promotion of an already queued goal. Codex can apply a goal through its existing interrupt-and-restart path; Claude can deliver native commands through its active-steering SDK input. Simply forwarding /goal through Codex turn/steer would be wrong because native goal control uses the goal API.
Observed in source at upstream main bbd98a5f873eaed5f5efbfbacc6913ee87804443. This report does not claim a live-client reproduction yet.
Scope and acceptance#
- Queue a
/goal …command behind active work and execute it through the normal native command path after that work ends. - Steer a
/goal …command, including by promoting a queued command. Use the provider's supported mechanism: native delivery for Claude and interrupt-and-restart for Codex mutations. A bare Codex/goalqueries status without interrupting or ending the active run. - Keep ordinary queued and steering messages working during an active native goal, including Codex continuation turns.
- Preserve model, permission, and interaction settings, queued messages, command validation, and compaction/sign-out restrictions.
- Keep native goal commands recognizable when steering replaces an automatic restart continuation.
Execution plan#
- Reproduce the current rejection through the shared orchestration dispatch seam with a focused integration/replay test.
- Replace the blanket goal rejection with existing provider capability routing. Force Codex goal mutations through interrupt-and-restart so normal startTurn performs native goal parsing; retain Claude native steering. Handle bare Codex
/goalthrough the native status API with a nonterminal assistant reply. Ensure a new explicit command supersedes automatic resume provenance, and deliver bounded handoff/restart context separately from native command text. - Verify direct steering, queued promotion, queued-goal delivery, ordinary queue lifecycle during a goal, and steering the newest Codex continuation. Assert native request shape and preserved settings where relevant.
- Run focused tests and targeted lint/typecheck, then review the integrated diff. No wire schema, new UI, dependency, live deployment, or goal-completion redesign is planned.
- Submit one focused PR with red/green evidence and explicit verification limits. Keep it open until checks, review requirements, and findings are resolved; merge is not authorized by this task.
This proposes extending delivery of an established native command through existing explicit queue/steer actions. Maintainers may determine that product-direction discussion is required before accepting the change; no prior maintainer approval is claimed.
juliusmarminge added labelswontfix
juliusmarminge closed this
Sign in to join this conversation.
Note
Grok responding on behalf of Julius.
Thanks for the detailed write-up. This rejection is intentional: when native
/goallanded in #15592, the design said you can't steer a/goalcommand into a running turn, and it has to run as its own turn. Queuing it behind active work already works, which is what the error message points you to.Changing that would be a product-direction change rather than a bug fix, so I'm closing this as working as intended. If you'd like to make the case for steering goals into active turns, please open it under Ideas so it can be discussed before any PR.