Repository navigation
perf(desktop): stop background streams from rebuilding idle sessions - #1
Merged
Merged
Conversation
|
PR test build retired — merged into |
kitlangton
marked this pull request as ready for review
November 8, 2026 02:09
kitlangton
force-pushed
the
idle-frame-cost
branch
from
November 8, 2026 02:09
ea9a6bf to
838128f
Compare
This was referenced Nov 20, 2026
Merged
Merged
Merged
This branch was previously deployed
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.
Side tabs no longer rebuild every project’s worktree list to find one tab’s avatar. Background text can update its session without rebuilding the page you are reading. Visible busy indicators keep their cadence.
❌ Before: An incoming network delivery requested a window redraw. Updating the timestamp of an unrelated session could also rebuild the current page. The sidebar then materialized and deduplicated worktree lists for each tab.
✅ After: Coalesce deliveries into a quiet poll that Rune can skip presenting. Keep timestamps current, but invalidate only views that use them. Check membership directly, starting with the session’s project.
Release fixture: 10 side tabs, four busy sessions, 24 projects, 40 worktrees each and a 1,600-message timeline. Same Mac; 32 warmups and 288 timed updates, before the rebase.
The new headless regression checks for no scheduled frames at rest, no rebuilds while the radar ticks, and no commits on 180 background events. It does not measure native presentations on a user’s machine.
👀 Read:
launch::inbox_wakerchanges only network deliveries. Image completions still request a normal redraw.Checks run
cargo test --release --locked -p opencode-desktop perf::sidebar_tests -- --include-ignored --nocapture --test-threads=1: passed before rebase.cargo test --locked -p opencode-desktop: new regression passed on rebased head; full suite 632 passed, 64 failed, 26 ignored. All 64 failures also reproduced on the unmodified base (15 in the initial run, 49 in an exact-test follow-up). The full-suite gate is not green.scripts/file-size.sh: passed.scripts/folder-shape.sh: same two errors on base and head.