Repository navigation
Conversation
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Merge Risk: ⚪ Minimal · up to
|
|
✅ Deterministic PR hygiene checks passed. |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
Ingwannu
left a comment
There was a problem hiding this comment.
Reviewed fac63237555cbe2730f11cdcf489231a4b2a51ff against its dev base. The backward scan preserves URL normalization while leaving canonical destination/auth/header selection unchanged; both test maps and the owning contract are updated.
Independently ran Bun 1.4.3 bun test --isolate tests/responses/responses-forward-transport-baseurl.test.ts tests/responses/openai-responses-passthrough.test.ts: 190 pass, 0 fail, in a fresh private home under the local CPU/memory/time caps. The broader full local suite was not repeated because current-head hosted run 39201522639 already completed all four selected Ubuntu shards and gates; gates job 117895368455 explicitly passes Typecheck and Privacy scan. Skipped OS suites are not platform acceptance evidence. No live provider/configuration operation or merge was performed. The advisory Codex status is review-account usage exhaustion, not a demonstrated source finding; no account/credit action was taken.
Summary
provider.baseUrl.replace(/\/+$/, "")on the noncanonical forward path inbuildResponsesTransport(src/adapters/openai-responses/transport.ts) withstripTrailingSlashes, a linear scan that drops the trailing/run by walking each character once./\/+$/retries candidate end positions when a long slash run is not at the end of the string (the CodeQLjs/polynomial-redosshape); the scan produces the same normalized URL on every input without that behavior.tests/responses/responses-forward-transport-baseurl.test.tspinning the normalization in a sibling file, sinceopenai-responses-passthrough.test.tsis at its file-size cap: multiple, single, and absent trailing slashes; preserved interior slash runs; and a long mid-path slash run.CODEX_FORWARD_BASE_URL; only the configuredbaseUrlpath changes. Provider config validation already requires an absolute http(s)baseUrl, so empty and slash-only values stay outside this call's contract.structure/providers-and-adapters.md).Verification
fac63237555cbe2730f11cdcf489231a4b2a51ff(run 39201522639, attempt 1): 14 jobs passed, including all four Linux test shards and aggregateci; 9 conditional jobs were skipped.bun test tests/responses/responses-forward-transport-baseurl.test.ts tests/responses/openai-responses-passthrough.test.ts tests/test-layout.test.ts tests/test-layout-tooling.test.ts— 217 pass / 0 fail on Bun 1.4.3.bun node_modules/typescript/bin/tsc --noEmit— clean.bun scripts/structure-ssot.ts— "structure/ SSOT checks passed".bun scripts/privacy-scan.ts— "Privacy scan passed" (over a sparse checkout limited tosrc/,tests/,scripts/,structure/,.github/, and the onedevlog/_findirectory the layout oracle reads).stripTrailingSlashesmatched/\/+$/output on 24 deterministic inputs including trailing/single/interior slash runs,\n,\r\n,\u2028,\u2029, tab, NUL, and surrogate pairs.Checklist
Summary by CodeRabbit