Skip to content

feat: detect MCP tool permission prompts as waiting_input in Codex detector#298

Merged
kbwo merged 2 commits intomainfrom
20260429-d2c46f
Apr 29, 2026
Merged

feat: detect MCP tool permission prompts as waiting_input in Codex detector#298
kbwo merged 2 commits intomainfrom
20260429-d2c46f

Conversation

@kbwo
Copy link
Copy Markdown
Owner

@kbwo kbwo commented Apr 29, 2026

Summary

  • Add enter to submit pattern to CodexStateDetector to detect MCP tool permission prompts (e.g. "Allow the chrome-devtools MCP server to run tool X?") as waiting_input
  • Add corresponding test case covering the full permission prompt layout

Test plan

  • Run npm run test and confirm the new test passes
  • Manually verify that Codex sessions showing MCP permission prompts transition to waiting_input state in ccmanager

🤖 Generated with Claude Code

kbwo and others added 2 commits April 29, 2026 20:30
…tector

Add `esc to cancel` check to CodexStateDetector to catch permission prompts
like MCP server tool approval dialogs that show "enter to submit | esc to cancel".

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…ng_input detection

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@kbwo kbwo marked this pull request as ready for review April 29, 2026 14:24
@kbwo kbwo merged commit 7e0fb1c into main Apr 29, 2026
1 check passed
@kbwo kbwo deleted the 20260429-d2c46f branch April 29, 2026 14:24
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