Repository navigation
fix(triage): prefer Codex when both coding agents are available - #149447
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
bd55441 to
c84188f
Compare
|
Codex review: needs maintainer review before merge. Reviewed September 15, 2026, 11:57 PM ET / September 16, 2026, 03:57 UTC (Revision 5). ClawSweeper reviewWhat this changesTriage now prefers Codex among available external coding agents, with matching documentation and selection tests. Merge readiness✅ Ready for maintainer review Keep open: current main still prefers Claude Code, so this maintainer-sponsored change remains useful. No actionable correctness or security findings remain. Priority: P3 Review scores
Verification
How this fits togetherTriage collects installation diagnostics and hands a repair prompt to an available coding agent. Its shared preference list controls external-agent selection and suggested recovery commands. flowchart TD
A[Installation diagnostics] --> B[Triage handoff]
C[Installed coding agents] --> B
D[Explicit agent choice] --> B
B --> E{Configured embedded recovery?}
E -->|Yes| F[Embedded agent]
E -->|No| G[Selected external agent]
B --> H[Manual recovery command]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource 0, Tests +3, Docs 0. Total +3 across 4 files. View PR surface stats
Review metrics
Technical reviewBest possible solution: Keep one shared preference list while preserving explicit agent selection, embedded recovery precedence, and existing execution policies. Do we have a high-confidence way to reproduce the issue? Not applicable as a defect reproduction: this intentionally changes a documented preference. Current-main source confirms Claude is selected first when both agents are available. Is this the best way to solve the issue? Yes. Reordering the existing shared list is the narrowest implementation and avoids separate selection policies. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 7815ee7330d9. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (4 earlier review cycles)
|
68473cc to
a0f83fb
Compare
|
Merged via squash.
|
What Problem This Solves
Triage launches Claude Code before Codex when both coding agents are available on the machine.
User Impact
Triage now prefers Codex, followed by Claude Code, OpenCode, and Pi. Explicit
--agentchoices still win, and automatic recovery still prefers the configured embedded OpenClaw agent before external CLIs.Why This Change Was Made
Reorder the existing shared external-agent list so interactive launch, automatic failure handoff, and suggested recovery commands consistently prefer Codex. Authentication, permissions, launch arguments, and failure handling retain their existing behavior.
Evidence
git range-diff.a0f83fb2d396f3fd0b1d93e5beebbc5df0e16118, both focused triage suites pass all 79 cases. The required exact-head CI gate passed in run 35047543180. The latest current-head ClawSweeper review also has no actionable findings.