Skip to content

fix(detection): detect Codex /model selection list for Reasoning Level UI (#619)#620

Merged
Kewton merged 1 commit intodevelopfrom
fix/619-codex-reasoning-level-display
Apr 4, 2026
Merged

fix(detection): detect Codex /model selection list for Reasoning Level UI (#619)#620
Kewton merged 1 commit intodevelopfrom
fix/619-codex-reasoning-level-display

Conversation

@Kewton
Copy link
Copy Markdown
Owner

@Kewton Kewton commented Apr 4, 2026

Summary

  • cli-patterns.tsCODEX_SELECTION_LIST_PATTERN を追加し、Codex /model の arrow-key selection list(press enter to confirm footer)を検出可能に
  • status-detector.ts に Codex selection list 検出ブロックを挿入し、waiting/codex_selection_list ステータスを返すように
  • status-detector-selection.test.ts に6テストケース追加

Closes #619

Test plan

  • npm run lint — PASS
  • npx tsc --noEmit — PASS
  • npm run test:unit — 6058 passed
  • npm run build — PASS

🤖 Generated with Claude Code

Add CODEX_SELECTION_LIST_PATTERN to detect "press enter to confirm"
footer in Codex CLI's arrow-key selection prompts (e.g., /model Step 1).
This enables NavigationButtons display on mobile for model selection.

- Add CODEX_SELECTION_LIST_PATTERN in cli-patterns.ts
- Add CODEX_SELECTION_LIST to STATUS_REASON and SELECTION_LIST_REASONS
- Insert selection list detection in status-detector.ts section 2.7
  (after thinking, before idle prompt)
- Add 6 test cases for Codex selection list detection

Resolves #619

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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