fix(adapters): preserve orphan tool image carriers - #3593
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Team Run ID: 📒 Files selected for processing (7)
Included review availability: Your plan provides up to 10 included reviews per hour; 5 remain after this review. 📝 WalkthroughWalkthroughAnthropic and Command Code adapters now preserve images from orphan tool results in provenance-labeled user carriers. Text-only behavior remains unchanged. Tests cover pairing, barriers, outstanding calls, data URLs, HTTPS URLs, and ordering. Documentation describes the updated contract. ChangesOrphan image carrier preservation
Estimated code review effort: 3 (Moderate) | ~25 minutes Merge Risk: ⚪ Minimal · up to Orphan tool-result images are retained without embedding image data in prompt text or fabricating tool pairings, with coverage for the relevant ordering and fallback cases. Sequence Diagram(s)sequenceDiagram
participant ToolHistory
participant AnthropicAdapter
participant CommandCodeAdapter
participant UserCarrier
ToolHistory->>AnthropicAdapter: provide orphan tool result
AnthropicAdapter->>UserCarrier: emit provenance text and image content parts
ToolHistory->>CommandCodeAdapter: provide orphan tool result
CommandCodeAdapter->>UserCarrier: emit text carrier and wired image carriers
Suggested reviewers: 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Full details: Docstring CoverageExplanation Docstring coverage is 50.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 4 functions across 4 files. (3 skipped: 3 unsupported.)
✨ Finishing Touches 💡 2📝 Generate docstrings 💡
🛠️ Fix failing CI checks 💡
🧪 Generate unit tests (beta)
Thanks 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 |
|
✅ Deterministic PR hygiene checks passed. |
리뷰 · 우선순위 54 / 80이 PR은 외부 이미지 라운드트립 스택의 4번째 층입니다. 베이스는 하는 일을 쉽게 말하면 이렇습니다. 도구 결과(tool result) 안에 스크린샷 같은 이미지가 들어 있는데, 옆에 짝이 되는 tool_use / tool call이 없을 때가 있습니다. 예전 Anthropic 어댑터는 그 고아 결과를 지금 테스트는 시나리오를 꽤 넓게 잠급니다. standalone / duplicate / unmatched / user barrier / outstanding other call, data URL과 HTTPS, mixed/empty text, 텍스트에 base64가 안 섞이는지, 가짜 페어링이 없는지까지 봅니다. CI는 linux test shard와 gates는 통과 쪽이고, macos 일부는 아직 pending으로 보입니다. CodeRabbit은 draft로 스킵된 기록이 있어 상태 확인이 한 번 필요합니다. 라인 / 경로로 보면 아래를 보면 됩니다. 경로 메인테이너의 판단이 필요한 지점
너의 추천 이 댓글은 grok-bot이 작성했습니다 |
613dd4a to
b02daf2
Compare
040585b to
162c104
Compare
7974401 to
dd59883
Compare
3f6eeac to
b35a8b7
Compare
dd59883 to
7b51d9e
Compare
b35a8b7 to
2f38bad
Compare
7b51d9e to
109319b
Compare
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. |
109319b to
bfb56ba
Compare
2f38bad to
5d1ca2c
Compare
bfb56ba to
75dc09e
Compare
5d1ca2c to
7484cc5
Compare
Summary
Verification
Current stack, merge bottom-up: fix(chat): preserve external screenshot tool results and image detail #3586 → test(protocols): cover external image wire roundtrips #3589 → fix(protocols): make image reference boundaries explicit #3591 → fix(adapters): preserve orphan tool image carriers #3593 → fix(cursor): prepare active tool screenshot batches #3595 → fix(cursor): attach external tool screenshot provenance #3596. All source slices received independent gpt-6-astra high review with no unresolved findings.
The layer-2 CI failure was traced to the existing late-spill test's outer wall clock; a scoped clock spy and publication-tail cleanup repair preserves every assertion/timer/budget. No production state code changed. Higher layers were cascaded with explicit leases; range-diff confirms identical image patches. Latest-head CI remains pending.
Standalone adapter-body reproduction (no network): both native image fields absent before; both present after, exit 0. Anthropic text no longer contains image bytes.
node node_modules/typescript/bin/tsc --noEmit: exit 0. Both changed test files statically bundle; suites run in GitHub CI only per explicit owner instruction.Public docs build: 425 pages, exit 0. Independent seven-file patch review passed.
Push uses
--no-verifysolely because the installed hook runs the prohibited local full suite. Exact-head CI and resolved findings are required before merge.Owner authorizes admin merge/approval bypass after CI. All merges remain on hold until the expanded all-format audit and Cursor follow-up are complete.
Checklist
Summary by CodeRabbit