Repository navigation
feat: live Codex captures, questions asked in a reply, and ending turns Codex never ends (#280) - #390
Merged
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
11 of 14 tasks
Code coverage overviewLanguages: TypeScript TypeScript / code-coverage-agent
View coverage of the 5 most impacted files.
ℹ️ Calculations represent line coverage. Results may change as calculations are updated. Updated |
BunsDev
force-pushed
the
cf7-codex-capture
branch
from
October 23, 2026 04:56
6a7fe05 to
41c52b4
Compare
BunsDev
enabled auto-merge
October 23, 2026 04:57
github-merge-queue
Bot
removed this pull request from the merge queue due to a conflict with the base branch
Oct 23, 2026
BunsDev
force-pushed
the
cf7-codex-capture
branch
from
October 23, 2026 05:46
41c52b4 to
0955b7b
Compare
BunsDev
enabled auto-merge
October 23, 2026 05:46
github-merge-queue
Bot
removed this pull request from the merge queue due to a conflict with the base branch
Oct 23, 2026
…record (#280) Two codex-cli 0.163.0 app-server turns, captured 2026-10-23 in a disposable repo with default_mode_request_user_input enabled, redacted into fixtures and replayed through the Codex backend and the runner. gpt-6.1-sol asked through requestUserInput; its clarification, edit and command reach the task record. gpt-6-astra asked through an async agent message (AsyncUserInputQuestion) and slept twice; Modex shows the text and no card. Neither model sent turn/plan/updated: both said their plan tool was not available. The gpt-6.1-sol turn sent no turn/completed within 600 s. No parser change was needed. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ends (#280) From the live codex-cli 0.163.0 captures, as Val decided: - agentMessage.questions (AsyncUserInputQuestion) are kept with the reply as asks. The reply shows each question's options; pressing one sends it as the next message, from the latest reply only and while no turn runs. The task record lists it as asked in a message. - After Codex's final answer, with no command or request open, Modex waits quietAfterFinalMs (5 minutes) for turn/completed, then ends the turn with a notice and sends turn/interrupt. Any later item resets the wait. Co-Authored-By: Claude Opus 5.5 <[email protected]>
BunsDev
force-pushed
the
cf7-codex-capture
branch
from
October 23, 2026 06:47
0955b7b to
591e3b8
Compare
BunsDev
enabled auto-merge
October 23, 2026 06:47
This was referenced Oct 23, 2026
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Live Codex captures for CF-7 (#280): two real codex-cli 0.163.0 turns that each ask a clarification, saved as redacted fixtures and replayed through the Codex backend and the runner into the task record.
Capture (2026-10-23, Val's authorization in the CF-7 goal;
codex --version:codex-cli 0.163.0). A direct app-server probe used Modex'sthread/start/turn/startparameters in a disposable repo, in default collaboration mode, with--enable default_mode_request_user_input. The prompt asked the model to record a plan with its plan tool, ask one question, then edit and check. Account, MCP-startup, rate-limit, token-usage and moderation lines were dropped, and paths were redacted to/repoand~. Everything else is verbatim, in both directions.gpt-6.1-solitem/tool/requestUserInput, same shape as the 2026-10-20 capturegreeting.txt, rannode check.js(exit 0); noturn/completedwithin 600 s, thread stayedactivegpt-6-astra(from the user's Codex config)agentMessagewithdelivery: "async",questions: [{title, options}](AsyncUserInputQuestion)sleepitems of 60 000 ms, then completed still waitingHow the live shape differs from our scripted 0.163.0 shape: there's no
turn/plan/updated, so a real turn's plan is still unobserved. There's an async question shape and asleepitem, and a turn can go missing itsturn/completed. Parser: no change was needed. The replay shows the clarification, file and command in the record, and no plan. Async questions show as Codex's text with no card, and sleeps don't show as tools. Thegpt-6.1-solreplay supplies the missingturn/completeditself, and the test says so.Red-first, honestly: the first runs failed only on my own expectations: the record keeps the command as Codex reported it, and the Markdown line format. The backend read both live shapes correctly from the start, so there was no parser fix to drive red.
Val's decisions (2026-10-23), now in this PR:
agentMessage.questionsare kept with the reply asasks. The reply lists each question with its options, and pressing an option sends it as the next message. Only the latest reply's options are live, and only while no turn runs. The task record lists each one as "asked in a message". The e2e test ise2e/message-asks.spec.ts.quietAfterFinalMs(5 min). If nothing more arrives, it ends the turn with a notice and sendsturn/interrupt; any later item resets the wait. The red-first test is the replayed live capture with no syntheticturn/completed: it hung before the change. A second test covers a command that outlives the answer.gpt-6.1-solturns asked directly forupdate_plan: one without the question flag, one also with--disable goals. Both said the tool wasn't provided. They add no new shape, so they aren't saved as fixtures.Rebased onto #385, which runs Plan mode in Codex's plan collaboration mode, and onto #387.
Checks (after the rebase): build passed. Unit: 0 failed; 2 timed out under load (
runner: an unconfirmed stop…,demo waits for a slow turn…) and both pass alone. e2e: 389 passed; 1 failed under load (conversation-rendering.spec.ts:138) and passes alone.Earlier checks:
pnpm buildpassed.pnpm test: 0 failed, 0 cancelled.pnpm test:e2e: 388 + 7 passed, 6 skipped.🤖 Generated with Claude Code