Repository navigation
perf(deps,memory): pin rune e5ec031ca (active cache trim #4022) and tune tab hibernation - #2576
Merged
Merged
Conversation
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.
Bumps the
anomalyco/runeworkspace pin from8a2083a05toe5ec031ca(pulling in active cache and GPU layer pool trimming fromanomalyco/rune#4022) and tunes idle tab hibernation inapps/desktop/src/shell/tab_hibernate.rs.Changes
Cargo.toml,Cargo.lock): Updated all 21anomalyco/runedependency and[patch]entries from8a2083a05b177897bef3935a90715001347b291atoe5ec031ca96ee5a0f1c061b25aa66e99fb8a7e47.anomalyco/rune#4022(e64684e89: periodic soft cache and GPU pool trim during continuous drawing,TextSystem::trim_unused(),ImageAtlas::trim_unused(), spare GPU layer pool32 -> 8 MiB,El::cacheaging behind spinners).ebaba5063(4rune-kitthread-local state/cache bug fixes),52e2770b9(resvg0.50 + SVG depth cap),f234a9ad4(SVG DoS bounds), and2bf132a94(procwatchcpu_time).apps/desktop/src/shell/tab_hibernate.rs):TAB_IDLE_SECSfrom180.0s to90.0s.SUBAGENT_IDLE_SECSfrom60.0s to30.0s.workspace_panes.browser) remain live and untouched.apps/desktop/src/shell/tab_hibernate.rs):Fingerprintchange (running_ver,inboxes_ver,parked_stamp, etc.) at or past an armedduedeadline bypassedPhaseEvent::Tickand deferred active-server eviction by+CLICK_EVICT_DEFER_SECS(1.0s) while re-arming past deadlines (<= now) for parked servers. Nowpoll()runsPhaseEvent::Tick->RunSweepwhentick_due && !route_or_tabs, keeping the 1 s deferral strictly for tab/route click frames.scan_active_only: Avoids passing a past timestamp totx.wake_at.has_poolandsessions_leninFingerprint: Ensures transcripts hydrated befores.pages.set(...)(whenreloadablewasfalse) or subagent transcripts arriving before theirSessionInfoare re-evaluated as soon as the page pool or session metadata arrives.Audit note: startup-loaded background tabs
step_warmthtransitions never-visited resident background tabs directly fromNonetoTabWarmth::Cooling { idle_since: now, kind: BackgroundTab }(noActive-first requirement).boot.rs:761,WARM = 6) stay insides.pages.pool's privateq.readycache without enterings.transcripts(session/pages/mod.rs:686). Becausetab_hibernateonly iteratess.transcripts, those never-visited prefetched pages are out of scope here (session/is owned by a separate Wave 2 track).Verification
pwsh scripts/guardrails.ps1— passed (12/12, 16.9 s).cargo check -p opencode-desktop --no-default-features --features knobs— passed (0 warnings in touched files).cargo check -p opencode-web --target wasm32-unknown-unknown— passed (0 warnings in touched files).git diff --check— clean;tab_hibernate.rsis 499 lines (<= 800), no tests, no.cursor(...), nostd::time::Instant/SystemTime.Cargo.toml,Cargo.lock,apps/desktop/src/shell/tab_hibernate.rs.