Repository navigation
fix(plugin-sdk): drop unreachable openai tool-compat branch - #108310
Conversation
|
Codex review: needs real behavior proof before merge. Reviewed July 18, 2026, 3:02 AM ET / 07:02 UTC. Summary PR surface: Source -6, Tests +40. Total +34 across 2 files. Reproducibility: not applicable. This PR removes an unreachable internal condition rather than reporting a user-visible failure with a current-main reproduction path. Review metrics: none identified. Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Proof guidance:
Risk before merge
Maintainer options:
Next step before merge
Security Review detailsBest possible solution: Retain the single canonical OpenAI gate, verify the focused provider-tools coverage on current head, and add a redacted runtime trace through an OpenAI Responses tool invocation if maintainers require external-path proof. Do we have a high-confidence way to reproduce the issue? Not applicable: this PR removes an unreachable internal condition rather than reporting a user-visible failure with a current-main reproduction path. Is this the best way to solve the issue? Unclear: the proposed removal matches the supplied branch logic, but direct inspection of current main, the full selector call graph, and upstream OpenAI routing contracts was unavailable in this read-only environment. AGENTS.md: unclear because the file could not be read completely. Codex review notes: model internal, reasoning high; reviewed against 1f160696dcb1. Label changesLabel changes:
Label justifications:
Evidence reviewedPR surface: Source -6, Tests +40. Total +34 across 2 files. View PR surface stats
What I checked:
Likely related people:
What the crustacean ranks mean
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics. How this review workflow works
Review history (3 earlier review cycles)
|
42ad739 to
3d4a2d0
Compare
Keep behavioral route coverage and drop the brittle source-text assertion.\n\nCo-authored-by: Pick-cat <[email protected]>
3d4a2d0 to
4e0bfb7
Compare
|
Merged via squash.
|
…#108310) * fix(plugin-sdk): drop unreachable openai tool-compat branch * refactor(plugin-sdk): remove dead OpenAI compat branch Keep behavioral route coverage and drop the brittle source-text assertion.\n\nCo-authored-by: Pick-cat <[email protected]> --------- Co-authored-by: Peter Steinberger <[email protected]>
…#108310) * fix(plugin-sdk): drop unreachable openai tool-compat branch * refactor(plugin-sdk): remove dead OpenAI compat branch Keep behavioral route coverage and drop the brittle source-text assertion.\n\nCo-authored-by: Pick-cat <[email protected]> --------- Co-authored-by: Peter Steinberger <[email protected]>
What Problem This Solves
Fixes an issue where OpenAI tool-schema compatibility selection kept a second identical
provider === "openai"branch that could never run, making future Codex/ChatGPT Responses routing edits easy to place in dead code and leaving maintainers with misleading duplicate policy in the plugin-sdk tool-compat gate.Why This Change Was Made
Delete the unreachable duplicate
if (provider === "openai")block inshouldApplyOpenAIToolCompat. The live openai gate already returns for both nativeopenai-responsesand first-partyopenai-chatgpt-responseshosts; no second provider id or compat path is needed. Non-goals: no behavior change for live routes, no newcodexprovider branch (Codex remains folded intoopenai), no schema-normalization logic changes.Collision check: searched open/closed PRs for
shouldApplyOpenAIToolCompat,provider-toolsdead/unreachable openai branch — no competing PR for this exact dead block.User Impact
No user-facing behavior change. Operators and plugin authors get a single clear OpenAI tool-compat gate, so ChatGPT/Codex Responses strict-schema routing cannot be accidentally edited into an unreachable copy-paste branch.
Evidence
Exact head:
3d4a2d07e9342c5fd85ecc8c50b7b0e0f46b7c8eshouldApplyOpenAIToolCompathas exactly oneprovider === "openai"gate (verified viagrep).origin/main): two identicalif (provider === "openai")branches existed; now one.-6/ test LOC:+54Risk / Compatibility
Low. Deletes unreachable code only; exported
normalizeOpenAIToolSchemas/ family hooks unchanged. Mitigation: structure lock test + ChatGPT Responses / non-openai matrix coverage.Review