Repository navigation
test(agents): fixture CLI attempt backends - #118199
Conversation
|
Codex review: needs real behavior proof before merge. Reviewed August 2, 2026, 5:46 PM ET / 21:46 UTC. ClawSweeper reviewWhat this changesThe PR replaces bundled plugin CLI-backend discovery in the agent command test suite with deterministic Claude and Gemini backend fixtures, then resets injected dependencies before restoring the test environment. Merge readinessThis is a coherent, test-only performance improvement that uses the existing CLI-backend test injection seam and preserves the tested Claude/Gemini execution paths. It remains necessary because current Priority: P3 Review scores
Verification
How this fits togetherAgent command execution resolves a configured CLI backend before invoking the CLI runner and persisting session effects. This test suite exercises that orchestration while the new fixtures avoid booting unrelated bundled plugin runtime during setup. flowchart LR
A[CLI attempt tests] --> B[Injected backend descriptors]
B --> C[CLI backend resolution]
C --> D[Agent attempt orchestration]
D --> E[Mocked CLI runner and session assertions]
E --> F[Test cleanup restores runtime state]
Before merge
Agent review detailsSecurityNone. PR surfaceTests +20. Total +20 across 1 file. View PR surface stats
Review metricsNone. Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Rebase onto current Do we have a high-confidence way to reproduce the issue? Not applicable: this is a test-only performance change, and current source directly establishes the injected registry path and teardown ordering under review. Is this the best way to solve the issue? Yes: using the existing test-only dependency controls is the narrowest maintainable way to avoid loading bundled plugin runtime while retaining the CLI-attempt assertions. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against a6ad60a24709. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
|
@clawsweeper re-review The prior review lease expired while the placeholder remained. Exact-head CI and the focused proof in the PR body are current. |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Merged via squash.
|
Co-authored-by: Peter Steinberger <[email protected]>
Summary
All 112 orchestration assertions remain unchanged. No production code, test configuration, worker count, or sharding changes.
Performance
Proof
src/agents/command/attempt-execution.cli.test.ts— 112/112 passed after rebasing onto currentmainoxfmt,oxlint, andgit diff --checkpassedTest-only change; no changelog entry.