Repository navigation
#1035 Keep Home's cached paint stable on a cold start - #1036
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.
ivanfenenko
marked this pull request as ready for review
November 14, 2026 14:32
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]>
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
WorktreeLayoutrecord, queued in order with project resolutions) and seeded, together with project resolutions, before the cold paint builds rows. Home's first frame now shows the worktree labels, branches and project chip the live load will, instead of relabeling every row 2–3 times within ~3 s of launch.OpenCodeStatusStackgets anafterGracereveal variant (300 ms); Home and the app root use it, so a fast cached paint never flashes "Loading sessions".Checks
OpenCode MobileTestssuite passed (3378 tests / 332 suites). New tests: window seeding (SessionLiveStoreWindowTests), layout cache round trip and purge (DefaultSessionCacheTests), cold paint keeps worktree labels (ProjectListHomeViewModelTests).MainScreenViewModelTest96/96,HomeBranchLookupsTest7/7,DefaultSessionCacheTest24/24,HomeSessionWindowsTest,SessionLiveStoreTest,OpenCodeStatusStackRevealTestpassed;:app:assembleDebugsucceeded. A widerui.main.*+domain.*run has 2 failures inSseRecoveryFaultOracleTestthat also fail on unchangedmain.Evidence
Before/after recordings in the evidence comment.
Issue
Fixes #1035
Risks / Follow-ups
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.