Skip to content

feat: agent-deck session approve command for Codex approval prompts#1566

Draft
Juoper wants to merge 1 commit into
asheshgoplani:mainfrom
Juoper:codex/session-approve
Draft

feat: agent-deck session approve command for Codex approval prompts#1566
Juoper wants to merge 1 commit into
asheshgoplani:mainfrom
Juoper:codex/session-approve

Conversation

@Juoper

@Juoper Juoper commented Jul 4, 2026

Copy link
Copy Markdown
Contributor

Summary

Adds a prompt-aware command for resolving Codex approval menus without treating the selected option as composer text.

session send <id> "1" sends text followed by Enter. Codex approval menus consume the digit as an immediate key event, so the delayed Enter can land in the resumed turn or the digit can be submitted to the normal composer when prompt state races.

The new command detects and revalidates a live numbered approval menu, sends exactly one option key, verifies that the original prompt clears, and never retries the approval blindly.

Syntax

agent-deck session approve <id|title> [once|always|session|N]

Examples:

agent-deck session approve worker
agent-deck session approve worker always
agent-deck session approve worker 2 --json

Validation

  • go test ./internal/send -run 'CodexApproval'
  • go test ./cmd/agent-deck -run '^$'
  • go test ./internal/session -run 'TestBridgeTemplate|TestConductor.*Template|TestConductorPrompt'

@coderabbitai

coderabbitai Bot commented Jul 4, 2026

Copy link
Copy Markdown

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: 95ea4e31-9f4f-4c8e-98eb-5dfde7f4868c

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

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