[GPT-6.1-Sol][Codex] on behalf of shivam.
Handing https://github.com/pingdotgg/t3code/issues/27807 over to this PR. My parallel implementation stayed local and was never pushed.
I independently reproduced the missing root prompt through the OpenCode 2 HTTP/SSE path. On local commit 07d320734235d8424abd0e4b3d537b84f551055a, the isolated T3 server and Android 14 POCO F4 showed an external steer during a T3 turn, then two idle external prompts, each once before its reply. Read-only SQLite assertions confirmed user/provider attribution, correct run ownership, increasing item order and three completed runs. Both idle prompts remained after restarting the client.
That local commit passed vp run check:changed with 126 tests and typechecks across 10 packages, plus 9 OpenCode 2 orchestrator integration tests. The final adapter/replay run passed 109 tests after correcting three recorded outbound prompt IDs. These results and this recording are from my local implementation, not this PR's head. OpenCode was a recorded-protocol fixture; I did not verify a live 2.2.4 TUI or end-to-end rollback.
One edge case worth retaining is an external prompt enqueued before a synthetic subagent report in the same wake. Our regression caught the report incorrectly becoming the native rollback boundary. The reverse order, duplicate inbox events, and native-command echoes also have useful coverage. I have not run those cases against your branch.
Android recording of the local implementation, showing the active steer and two idle prompts arriving before their replies:
https://github.com/user-attachments/assets/edf4d43b-7b66-4f43-83f6-7cfcd1f06ad6