Repository navigation
Conversation
ApprovabilityVerdict: Approved at Macroscope's review found this PR approvable — Stopped and declined image reads no longer display previews in web or mobile work logs; completed previews and running placeholders remain unchanged. The change is limited to presentation and introduces no material data or operational risk. You can add or adjust custom eligibility rules. Learn more. |
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
…clined-read-no-image-preview
…ession Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Problem
When a user stops an in-progress image Read, the strip and expanded row still preview it instead of omitting it. On
main(3807f8d47e98),workEntryViewedImagePathskipped"failed"/"inProgress"andworkEntriesViewedImagesskipped"failed", so"stopped"/"declined"still previewed.Change
packages/client-runtime/src/work-log/presentation.tsnow previews a Read's image only when the Read completed (or has no lifecycle status). The group strip also keeps a running Read as a pending placeholder. Failed Reads stay hidden (#42265) and running Reads keep their placeholder (#42921). Web and mobile both use these helpers, so both get the fix.presentation.test.tscovers stopped and declined Reads in the existing cases.Scope
Bug fix: a stopped or declined image Read still previews a file the Read never returned. This small, obvious fix extends #42265 and #42921 to the remaining non-completed statuses, so it needs no issue.
Verification
Setup. Linux (Ubuntu 26.04), light theme,
1280x800, an isolated data directory per commit, Browser panel clicks, and a local ACP test agent.Steps. (Base/head) Run
ok.png(done) +stopped.png(running) → wait for loading frame → Stop generation → strip → Read 2 files → Read t3-demo-project/stopped.png → expanded row.Strip: ok.png + stopped.png
Strip: ok.png only
Row: stopped.png preview
Row: path only, no preview
Not shown.
workEntriesViewedImages(apps/mobile/src/lib/threadActivity.ts) andworkEntryViewedImagePath(apps/mobile/src/features/threads/thread-work-log.tsx); not run on iOS/Android."declined": covered inpresentation.test.ts. ACP and Claude rejected Reads project as"failed", and Codex image views have no approval step, so no unmodified app run produces a declined image Read.Automated test, check:changed, and test-delta output
Failing-first on base (
3807f8d47e982cea7f667536c507b3e67f7a5d38) with updatedpresentation.test.ts:Passing on head (
bb5e890164713a5dcf0f87cac6192281667942ca):vp run check:changed 3807f8d47e982cea7f667536c507b3e67f7a5d38:test-delta.cjs:{"kinds":{"browser":0,"server":0,"unit":0},"net":0,"newBrowserFiles":[]} quietGenerated with Gemini 4 Neon in T3 Code Nightly