fix(responses): compile structured shell payloads sent to code-mode exec - #5352
Flowershangfromthebranches wants to merge 1 commit into
Conversation
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: trueThanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
리뷰 · 우선순위 52 / 80이 PR은 모델이 code-mode 라인 라인 메인테이너의 판단이 필요한 지점 너의 추천 이 댓글은 grok-bot이 작성했습니다 |
|
✅ Deterministic PR hygiene checks passed. |
⏳ DRAFT
What to do
Review readiness checklist
0/4 boxes ticked. This PR stays in draft until every box above is ticked. |
|
Closing as superseded. The changes from this PR (head This fix is on |
Summary
A routed Chat model can emit
execwith a structured shell payload such as{"cmd":"cd \"/tmp/example repo\" && git status --short"}. Codex executesexecas JavaScript: older restoration forwards the JSON, and alternate-field restoration forwards bare shell text. Both fail before the nested shell tool runs.inputwrapper, and reuse the existing helper compiler to emittools.exec_command(...)plustext(result).This fixes the tool-payload compatibility defect observed with StepFun through the shared adapter path. A subsequent provider
429 rate_limit_exceededis a separate upstream condition: this PR does not change retry policy or claim to remove provider limits.Verification
responses-code-mode-shell-compile,responses-code-mode-patch-compile,apply-patch-envelope,responses-custom-tool-repair,responses-custom-tool-stream-consistency,bridge-legacy-shell-normalization, and both test-layout suites.bun run typecheck— passed.bun test tests/ci-workflows/file-size-ratchet.test.ts— 9 passed.bun run structure:checkandbun run privacy:scan— passed.bun install --frozen-lockfileandbun run buildindocs-site— passed (497 pages).git diff --check— passed.Checklist
Review readiness checklist
This PR stays in draft until every box below is ticked. Tick all four boxes once the requirements are met:
All CI tests are green on my local testing.
I pushed my PR to the latest dev commit.
I resolved all correct Codex and CodeRabbit findings.
My PR is ready for review.