Repository navigation
fix(agents): fail closed on missing Codex harness [AI-assisted] - #83400
IWhatsskill wants to merge 1 commit into
Conversation
|
Thanks for the context here. I did a careful shell check against current Current main already implements the useful fail-closed behavior with a broader fix than this branch, including missing-harness preflight before fallback candidate skipping and regression coverage. The PR should close as redundant rather than merging a now-superseded branch. So I’m closing this as already implemented rather than keeping a duplicate issue open. Review detailsBest possible solution: Keep the current main implementation and close this PR as redundant; track any remaining doctor or session-repair work in the related canonical issue. Do we have a high-confidence way to reproduce the issue? Yes. The current-main source path shows strict missing harness selection used to enter generic model fallback, and current regression tests now lock in that it fails closed instead. Is this the best way to solve the issue? Yes. Current main is the better solution because it covers both the PR's run-path error and earlier candidate preflight cases before fallback can skip the broken primary route. Security review: Security review cleared: The PR and superseding main fix touch internal TypeScript error classification and focused tests only, with no dependency, secret, permission, workflow, or network-surface changes. What I checked:
Likely related people:
Codex review notes: model gpt-5.5, reasoning high; reviewed against e3d55188384b; fix evidence: commit 8f27b3e21f6b, main fix timestamp 2026-05-18T12:47:51+08:00. |
|
@clawsweeper re-review |
|
🦞🧹 Reason: re-review requires an open issue or PR. Re-review progress:
|
|
@clawsweeper re-review |
|
@clawsweeper re-review |
Summary
Change Type (select all)
Scope (select all touched areas)
Linked Issue/PR
Real behavior proof (required for external PRs)
runWithModelFallback()source path throughtsx.openai/gpt-5.5, fallbackanthropic/claude-sonnet-4-6, and a missing Codex harness error.{ "error": "Requested agent harness \"codex\" is not registered.", "code": "agent_harness_not_registered", "calls": [ "openai/gpt-5.5" ] }Error, andrunWithModelFallback()continued unknown errors while fallback candidates remained.Root Cause (if applicable)
Regression Test Plan (if applicable)
src/agents/model-fallback.test.tsUser-visible / Behavior Changes
Sessions explicitly configured for a missing Codex harness now fail with that harness error instead of silently continuing on a fallback model.
Diagram (if applicable)
Security Impact (required)
Yes/No) NoYes/No) NoYes/No) NoYes/No) NoYes/No) NoYes, explain risk + mitigation: N/ARepro + Verification
Environment
openai/gpt-5.5with fallbackanthropic/claude-sonnet-4-6Steps
openai/gpt-5.5with fallbackanthropic/claude-sonnet-4-6.codexharness error.Expected
Actual
agent_harness_not_registeredafter onlyopenai/gpt-5.5.Evidence
Focused checks:
Human Verification (required)
codeacross possible boundaries, not only same-realminstanceof.Review Conversations
Compatibility / Migration
Yes/No) YesYes/No) NoYes/No) NoRisks and Mitigations