GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — fix(client-runtime): omit failed image reads from viewed-image previews by Luzivog · Pull Request #42265 · pingdotgg/t3code Conversation
Contributor
ProblemClaude and ACP adapters tag Change
ScopeFixes #38206. Cleanly replaces stalled #38219 with the minimal scope requested in #38219 (comment). Verification
Written and verified by Gemini 4 Neon in Antigravity (via T3 Code).
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
This was referenced
|
There was an error while loading. Please reload this page.
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
| Check name | Status | Explanation |
|---|---|---|
| Title check | The title "fix(client-runtime): omit failed image reads from viewed-image previews" matches the main change. The raw summary shows workEntryViewedImagePath now returns null for failed entries, and the… | |
| Description check | The description follows the repository template. It has Problem, Change, Scope, and Verification sections, and each contains specific content. The Problem section explains the Image unavailable card a… | |
| Linked Issues check | Linked issue #38206 is the only active direct target. Its requested behavior is that a failed Read of a missing image shows the tool error text instead of an "Image unavailable" card. The diff at head… |
|
| Out of Scope Changes check | The whole-PR diff from merge base 90e6e3e to head e724afc is limited to the workEntryViewedImagePath guard in presentation.ts, its unit tests in presentation.test.ts, and a fixture update with c… |
Explanation
The title "fix(client-runtime): omit failed image reads from viewed-image previews" matches the main change. The raw summary shows workEntryViewedImagePath now returns null for failed entries, and the tests cover failed reads being omitted from viewed-image previews. The title uses a conventional commit prefix and names the package and behavior.
Explanation
The description follows the repository template. It has Problem, Change, Scope, and Verification sections, and each contains specific content. The Problem section explains the Image unavailable card and the hidden Error text. The Change section names the guard added to workEntryViewedImagePath. The Scope section links issue #38206 and the prior PR request. The Verification section lists focused unit test results, the check:changed run, and a real-app before/after run. It also states what was not checked (mobile native runtime). The before/after screenshots are embedded. The template's trailing line asks for the model and harness; the author includes 'Written and verified by Gemini 4 Neon in Antigravity (via T3 Code).' The description is largely complete.
Explanation
Linked issue #38206 is the only active direct target. Its requested behavior is that a failed Read of a missing image shows the tool error text instead of an "Image unavailable" card. The diff at head adds a guard to workEntryViewedImagePath in packages/client-runtime/src/work-log/presentation.ts. The guard returns null when entry.toolLifecycleStatus === "failed", before the viewedImagePath and read-detail fallbacks run. The image-card branch is therefore not selected for failed reads. The issue states that the failed row already shows the error for other failed Read calls, and the issue's own suggested fix is this status guard. Unit tests in presentation.test.ts and MessagesTimeline.logic.test.ts cover failed reads being omitted from viewed-image previews. The author reports a before/after scenario run showing zero unavailable-image cards at head and the error text in the expanded row. I did not independently verify that screenshot run or the expanded-row error rendering. The remaining rendering claim rests on the author's report and the existing failed-row behavior.
Explanation
The whole-PR diff from merge base 90e6e3e to head e724afc is limited to the workEntryViewedImagePath guard in presentation.ts, its unit tests in presentation.test.ts, and a fixture update with comment in MessagesTimeline.logic.test.ts. The fixture change adds a failed read case that exercises the new guard. The PR description states that workEntryReadOutput and any declined-status branch are intentionally not changed. No unrelated files or behavior changes are listed in the summary. All changes connect directly to issue #38206.
65107e0d-9d23-4784-9025-00ab756334b5apps/web/src/components/chat/MessagesTimeline.logic.test.tspackages/client-runtime/src/work-log/presentation.test.tspackages/client-runtime/src/work-log/presentation.tsIncluded review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…sion The timeline test drives a failed Read item through the real projection, so it already fails if the guard regresses. Co-Authored-By: Claude Opus 5.5 <[email protected]>
EvidenceReplay a failed PNG Read and a successful PNG Read in one turn, then expand the work log, Read group, and failed row. Web, Chromium, light theme, 1440×1100, fresh synthetic state on each commit.
Base shows two Image unavailable cards; head shows zero. The missing-file path and ENOENT output remain, and the successful purple PNG still previews. Not shown:
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
[Bug]: Failed Read of a missing image shows "Image unavailable" card instead of the error
There was an error while loading. Please reload this page.