Node-based terminal manager for AI coding agents — tmux-backed terminals and parallel agent sessions as draggable nodes on an infinite pan/zoom canvas. macOS, Linux, and a browser Server Edition.
TypeScript adhdagent-orchestrationai-agentscanvasclaude-codecodexcoding-agentsdeveloper-toolselectrongeminilinuxmacosmultiplexeropencodeparallel-agentsterminalterminal-emulatorterminal-multiplexertmuxworkspace-manager
docs(grok): record the awaitingInput question main's codex fix raises
eneseffcb255e116
diff --git a/docs/grok-agent.md b/docs/grok-agent.mdindex 5e864e82e..be4380132 100644--- a/docs/grok-agent.md+++ b/docs/grok-agent.md@@ -531,4 +531,13 @@ Two traps with no code fix — appended so the numbering above stays stable`ctrlEnterEncoding: 'csi-u'` for it, i.e. a different encoding family — so check both: doesShift+Enter insert a newline (not submit), and does plain Enter still submit? If the remap fightsgrok, the fix is a per-agent encoding in `terminal-config.ts`, not a global change.+33. **Does a grok elicitation survive its turn end?** Open an ask (whatever produces+ `elicitation_dialog` / `agent_needs_input`) and watch what the node does when the turn finishes.+ Codex has exactly this shape — its `request_user_input` ends the turn with the question still+ open, the answer arriving as a fresh `UserPromptSubmit` — so `normalizeCodex` marks the ask+ `awaitingInput` and `reduceEntry` holds `waiting` through the turn-end `done` (main's `7a40aab`,+ observed live on codex-cli 0.145.0). Grok does NOT set that flag, deliberately: if grok behaves+ like codex, a grok node goes green while it is still waiting on you; if it does not, setting the+ flag would pin NEEDS YOU on a node that genuinely finished. Report which happens — a green node+ over an open question means grok joins the `awaitingInput` path, one line in `normalizeGrok`.```diff --git a/src/shared/agents/normalize.ts b/src/shared/agents/normalize.tsindex f46d2f0d5..b918750c7 100644--- a/src/shared/agents/normalize.ts+++ b/src/shared/agents/normalize.ts@@ -556,6 +556,15 @@ export function normalizeGrok(env: RawHookEnvelope): NormalizedAgentEvent | null// vocabulary is claude-derived, and claude's `elicitation_complete` / `elicitation_response` are// informational — they fire when an elicitation ENDS. A substring test on 'elicit' would match// them and leave NEEDS YOU on a node that just finished, with no later hook to clear it.+ //+ // DELIBERATELY NOT setting `awaitingInput` here, and the omission is a bet either way. Codex's+ // `request_user_input` ends its turn with the question still open (the answer arrives as a fresh+ // UserPromptSubmit), so `normalizeCodex` marks the ask `awaitingInput` and `reduceEntry` holds+ // `waiting` through the turn-end `done` — without it the node goes green over a session that is+ // still waiting on the user. Whether grok's elicitation behaves the same way is UNMEASURED: if it+ // does, grok has that bug; if it does not, setting the flag would hold NEEDS YOU on a node that+ // genuinely finished, which is the worse of the two. So it stays off until someone watches a real+ // grok elicitation cross a turn boundary — device checklist item 33.if (type === 'elicitationdialog' || type === 'agentneedsinput') {return { ...base, kind: 'state', state: 'waiting', lastMessage }}