Repository navigation
#1039 Show tool-result images: cache thumbnails, full image on tap - #1040
Merged
Merged
Conversation
Cache each added path's worktree list and branches and seed them, with project resolutions, before the cold paint builds rows, so the live load no longer relabels every row. Start the first live session window at the size the cache painted, and reveal the full-screen Home and app-root loader only after a 300 ms grace. iOS and Android.
Port the cached worktree-layout seeding onto main's Home region split: HomeWorktrees now seeds and remembers worktree layouts, and HomeProjectList seeds them before the cached paint on both platforms. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…firm, full image on tap Tool images were dropped by the session cache codec, and a cache-confirmed tail kept the image-less cached copy. Both apps now hydrate media from the fetched page, keep bounded on-device thumbnails (400 px, <=64 KB, 24 per session, 50 MB total with LRU eviction and purge/orphan cleanup), and fetch the single message (v1 and v2) for the full image in the viewer.
ivanfenenko
marked this pull request as ready for review
November 14, 2026 16:47
…-result-images Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ory after the region split Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
This was referenced Nov 14, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
thumbCache bytes= files= evicted=diagnostic line per pass.GET /session/{id}/message/{messageID}, v2GET /api/session/{id}/message/{messageID}with itsdataenvelope), behind the existing protocol-selected remote. The viewer goes thumbnail → loading → full | failed with Retry; Share is enabled only on the full image. Full images are held in a 32 MB in-memory cache that clears on memory pressure.could_not_load_full,loading_full,retryundercomponent.image_viewer.Checks
DefaultSessionCacheTests,ToolThumbnailStoreTests,ToolImageHydrationTestsandMessageImageLoaderTestsre-run 3 times: pass every time.DefaultSessionCacheTests.messageHandleSeedsAfterDebouncedFlush, a 40 × 20 ms polling test). It passed in all 3 re-runs, so it looks like timing while the machine was loaded.:app:assembleDebug: pass. The 9 touched test classes (141 tests): pass.:app:testDebugUnitTest: 3461 tests, 3 failures, which also fail on the base commit: two decimal-separator tests under a non-English locale, and the flakySseRecoveryFaultOracleTest.scripts/check-string-keys.mjs: keys match.git diff --check: clean. ktlint: no new violations in changed lines.Evidence
Pending. Screenshots of both platforms against the scenario harness will follow in a comment.
Issue
#1039
Risks / Follow-ups
<toolPartID>:file:<n>, Android<toolPartID>:image:<n>. Each is consistent within its own platform.Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.