fix(media): forward scanned PDF page images#96690
Conversation
ce31730 to
248a417
Compare
|
Codex review: needs maintainer review before merge. Reviewed June 25, 2026, 5:12 AM ET / 09:12 UTC. Summary PR surface: Source +49, Tests +116, Docs 0. Total +165 across 8 files. Reproducibility: yes. at source level. Current main can receive PDF-rendered images from extractFileContentFromSource and then emits only a placeholder text block on the chat media-understanding path; I did not run a live chat send in this read-only review. Review metrics: 1 noteworthy metric.
Root-cause cluster Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Mantis proof suggestion Risk before merge
Maintainer options:
Next step before merge
Security Review detailsBest possible solution: Land the typed current-turn image handoff after maintainer review, then close the overlapping candidate PR and let the canonical issue close from the merged fix. Do we have a high-confidence way to reproduce the issue? Yes, at source level. Current main can receive PDF-rendered images from extractFileContentFromSource and then emits only a placeholder text block on the chat media-understanding path; I did not run a live chat send in this read-only review. Is this the best way to solve the issue? Yes. Carrying extracted page images through existing current-turn image plumbing is the narrow maintainable fix, and this PR preserves existing imageOrder semantics while covering normal reply and ACP paths. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against d693b70bfcc1. Label changesLabel justifications:
Evidence reviewedPR surface: Source +49, Tests +116, Docs 0. Total +165 across 8 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
|
|
Live proof against PR head
Evidence anchor: extracted image SHA-256 |
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. |
|
Thanks @TurboTheTurtle for the PR and the live-output proof. This was a strong candidate for the same #96541 root cause. Maintainers landed #97354 as the canonical fix, merged as 07b9349. The merged implementation follows the same core direction: extracted scanned/image-only PDF page images are carried as typed image inputs into normal reply and ACP dispatch paths instead of being reduced to placeholder text. It also preserves mixed attachment ordering, updates the docs wording, and includes live Telegram proof. Closing this PR as superseded by the merged canonical fix. |
Closes #96541.
What Problem This Solves
Chat media-understanding already receives page-image payloads from image-only PDFs, but converted them into placeholder-only file blocks. Scanned PDFs in chat channels therefore did not reach vision-capable agent turns, unlike the sibling OpenResponses path.
Summary
Carry extracted PDF page images as transient current-turn images, consume them once in normal reply and ACP dispatch, and update the media-understanding docs to remove the stale "images not forwarded" wording.
Evidence
Live chat-channel proof will be supplied separately.