fix(send): skip Claude-tuned post-send verify for codex tools (#1205)#1228
Open
AndreIntelas wants to merge 1 commit into
Open
fix(send): skip Claude-tuned post-send verify for codex tools (#1205)#1228AndreIntelas wants to merge 1 commit into
AndreIntelas wants to merge 1 commit into
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (4)
📝 WalkthroughWalkthroughReturns immediately after SendKeysAndEnter for Codex-compatible sessions (skipping post-send verification), propagates IsCodexCompatible to sendWithRetryTarget/sendWithRetry call sites, and adds tests that validate skip-verify and non-skip recovery behaviors. ChangesCodex Tool Delivery Verification Fix
🎯 3 (Moderate) | ⏱️ ~20 minutes 🚥 Pre-merge checks | ✅ 7✅ Passed checks (7 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
8fb80cb to
fe046c9
Compare
…goplani#1205) agent-deck's asheshgoplani#876 delivery-evidence verify is Claude-tuned: it waits for an "active" status transition plus composer/unsent-paste markers. Codex's TUI exposes neither, so every send to a codex session false-negatives as "send dropped silently" (exit 1). In the session-send path the Ctrl+C recovery then quits codex and kills the pane, flipping the session to error. Codex reliably consumes the send-keys input and readiness is already gated before sending, so for codex tools skip the post-send verify: - instance.go sendMessageWhenReady (launch -m): return nil right after SendKeysAndEnter for codex (also avoids 50x stray Enter nudges). - session_cmd.go session-send + sendNoWait: pass skipVerify for codex. - launch_cmd.go --no-wait initial send: pass skipVerify for codex. Tests (issue1205_codex_send_test.go): the codex/skipVerify path issues a single atomic send with no Ctrl+C and no Enter-nudge spam; the same codex-shaped waiting state WITHOUT skipVerify drives the destructive Ctrl+C recovery the fix avoids. Fixes asheshgoplani#1205. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
fe046c9 to
d9aaf5a
Compare
Contributor
Author
|
@coderabbitai full review |
✅ Actions performedFull review triggered. |
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.
Fixes #1205.
Problem
agent-deck session send(andlaunch -m) to atool=codexsession always fails withsend dropped silently: no evidence of delivery after N checks (issue #876)(exit 1). In the session-send path the Ctrl+C recovery then quits codex and kills the pane, so the session goes toerror. As the issue reports, the message is actually delivered and codex responds — only the verification is wrong.Root cause
The #876 delivery-evidence verifier is Claude-tuned: it waits for an
"active"status transition plus composer / unsent-paste markers. Codex's TUI exposes neither, so a successful send false-negatives, and the Ctrl+C-then-resend recovery tears the session down.Fix
Codex reliably consumes the atomic
send-keysinput and readiness is already gated before sending, so for codex tools skip the Claude-tuned post-send verify:internal/session/instance.gosendMessageWhenReady(launch -m): returnnilright afterSendKeysAndEnterfor codex (also avoids 50x stray Enter nudges).cmd/agent-deck/session_cmd.gosession-send +sendNoWait: passskipVerifyfor codex.cmd/agent-deck/launch_cmd.go--no-waitinitial send: passskipVerifyfor codex.Gated via the existing
session.IsCodexCompatible(tool).Tests
cmd/agent-deck/issue1205_codex_send_test.go:active).gofmt/go vetclean;cmd/agent-deck+internal/sessionpackage tests green; builds onmain.Verified live
codex-cli 0.134.0 with agent-deck built from this change:
session send --wait,launch -m, and--no-waitall succeed, the session stays alive, and codex receives + processes the message.Summary by CodeRabbit
Tests
Bug Fixes
Behavior