Skip to content

Record a live Codex question: Modex reads it, Codex takes the answer (CF-3) - #357

Merged
BunsDev merged 2 commits into
mainfrom
cf3-live-question
Oct 21, 2026
Merged

BunsDev merged 2 commits into
mainfrom
cf3-live-question

Conversation

@BunsDev

@BunsDev BunsDev commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor

Part of #276 (CF-3), tracker #273. This records native plan-mode parser/answer compatibility; it does not close CF-3 app or human acceptance. Val approved the live turn.

Live capture (codex-cli 0.163.0, model gpt-6.1-sol, read-only, no commands)

A probe (apps/desktop/.probes/cf3/capture-question.mjs, not committed) drove codex app-server directly. It started a turn in Codex's plan collaboration mode, asked for one clarifying question, parsed the request with Modex's own codexQuestions, and answered with Modex's own codexAnswerResponse.

  • Request: item/tool/requestUserInput carrying threadId, turnId, itemId, questions: [{ id: "greeting_language", header: "Language", question, isOther: true, isSecret: false, options: [English, Spanish with descriptions] }], isBlocking: true and autoResolutionMs: null. The schema marks that last field deprecated in favour of isBlocking.
  • Modex's parse: one question, two options, other answers allowed, not secret, blocking. This matches the fixtures.
  • Answer: { answers: { greeting_language: { answers: ["English"] } } }. Codex accepted it and completed the turn with a plan item, "1. Update greeting.txt… 2. Verify…", not an agent message.

The sample is now apps/desktop/test/fixtures/codex-request-user-input-0.163.0.json, and test/human-requests.test.ts replays it, 11/11. No code changed, because the parser and the answer were already right. So there's no red step: the test pins existing behaviour to native data.

The limit it found (documented, under Known rough edges)

With default 0.163.0 settings, Codex offers the question tool in native plan collaboration mode; default_mode_request_user_input is off by default. The separate #348 capture enabled that opt-in flag through Modex: the card sent Blue and the model replied Blue. This direct probe does not exercise the app broker/card/transport, and human acceptance remains open.

Modex's Plan mode currently uses an ordinary turn. Native Plan integration would require selecting collaborationMode and showing Codex's plan items, which Modex does not read yet. #358 corrects the documentation to distinguish these evidence scopes.

That changes how Plan mode behaves for Codex, so it's left as a decision.

Docs: docs/human-requests.md (live evidence; Not done here), docs/task-context.md (a correction to the clarifications section), docs/status.md (Known rough edges).

pnpm build, pnpm typecheck passed.

Coven-Harness: Claude Code / claude-opus-5-5

…(CF-3)

With Val's approval, one codex-cli 0.163.0 turn (gpt-6.1-sol, read-only)
in Codex's plan collaboration mode was asked to put one clarifying
question through its question tool. The native item/tool/requestUserInput
request is now a fixture. codexQuestions read it as the fixtures
predicted, and Codex accepted codexAnswerResponse's answer and
completed the turn with a plan item. A unit test replays the sample;
no code changed.

The capture also found a limit, now documented and listed under Known
rough edges. In 0.163.0 Codex offers the question tool only in its plan
collaboration mode, and Modex's Plan mode is a prompt prefix on an
ordinary turn, so a live Codex turn in Modex never asks a question
card. Enabling it means sending Codex's plan mode and showing its plan
items. That is a decision for Val.

Part of #276 (CF-3), tracker #273.

Coven-Harness: Claude Code / claude-opus-5-5
@vercel

vercel Bot commented Oct 20, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
modex Ready Ready Preview Oct 21, 2026 12:40am UTC

Request Review

@github-code-quality

github-code-quality Bot commented Oct 21, 2026 •

Copy link
Copy Markdown

Code coverage overview

Languages: TypeScript

TypeScript / code-coverage-agent

main 4e9d965 cf3-live-question 0ee67a6 +/-
64% 64% 0%

ℹ️ Calculations represent line coverage. Results may change as calculations are updated.


Updated October 21, 2026 01:33 UTC

This branch was successfully deployed

1 active deployment
Preview — 0ee67a63 Deployed Oct 21, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant