Repository navigation
Description
User messages in Session Chat should show whether the agent has already picked up the prompt or is still waiting to read it, matching oc2 TUI.
Reported on iOS. The latest user bubble shows a timestamp only. Last-row Session Running (Working) is already shipped (OPE-199); this is per-user-message queued vs read chrome, including when a send is waiting because earlier work is still in progress (v2 inbox / steer).
Already shipped in opencode-mobile/opencode-mobile#242: isWaitingForPickup + followUpDelivery on user messages, live via session.inbox.enqueued / delivery.changed / delivered / cancelled, rendered as a caption ("Waiting to steer" / "Held until idle"). That caption is an invented receipt style and does not match TUI.
TUI treatment (opencode beta, packages/tui/src/routes/session/index.tsx + rows.ts):
- Pending steer: message stays inline, left accent border switches from agent colour to neutral. Tap → "Pending steer" dialog: Move to queue / Delete.
- Pending queue: removed from the timeline; a
QueuedPromptDockdirectly above the composer shows "N queued · first prompt text". Tap → list of queued prompts, Enter = steer, ctrl+d = delete. - Picked up: no chrome. A plain bubble is the "read" state.
- TUI syncs
GET /api/session/{id}/inboxon connect; pending items are materialised into the transcript from the inbox list.
Scope (both platforms, v2 only; v1 has no inbox and stays a no-op):
- Replace the opencode-mobile/opencode-mobile#242 caption: steer-pending bubble renders as a subdued state with no caption text; picked-up bubble is unchanged
- Queue-pending user messages are hidden from the timeline and surfaced in a queued-prompts dock above the composer ("N queued · first text")
- Queued dock opens a sheet listing queued prompts; each can be steered now or deleted
- Tapping a steer-pending bubble offers Move to queue / Delete
- Wire
GET /api/session/{id}/inbox,DELETE …/inbox/{id},POST …/inbox/{id}/steer,POST …/inbox/{id}/queuebehind the session remote / domain adapter - Reconnect / cold-open recovery: v2 message load merges the inbox list so waiting state and unpersisted pending prompts survive relaunch (closes the opencode-mobile/opencode-mobile#242 risk note)
- Do not replace or duplicate last-row Working / Retrying / Compacting
- iOS and Android stay in parity; gallery entries for the new bubble state and dock
Branch: feature/ope-212-pending-prompt-chrome
Imported from Linear OPE-212. Linear status: Done. Priority: Medium. Created 2026-08-25. Completed 2026-09-13.
Related: OPE-199, OPE-249, OPE-247.
Activity