Repository navigation
fix(session-menu): hydrate unread and preferences from boot packet on setup and menu open - #1996
Merged
Merged
Conversation
… setup and menu open
There was a problem hiding this comment.
Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota.
An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.
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.
Fixes #1977
Summary
notification.manual-unread) and per-session preferences (session.preferences) immediately from the in-memory boot packet (opencode.global.datis already inBOOT_NAMESPACES), removing theboot_ready()/ stage-B delay that leftMenus::unread_generation == 0on first launch and in new windows (Ctrl+Shift+N).unread::Stateandpreferences::Stateto explicit four-state machines (Waiting→Booted/BootedDirty→Ready) so first-frame context menus show Mark as unread / Mark as read and accurate Mute / Unmute state immediately, edits made before SQLite stage B completes are queued instead of silently dropped, and stage-B reconciliation updates without clobbering live edits or triggering redundant redraws.session_menu.hydrateduring windowsetup(before Frame 1) and callsession_menu::hydratebefore building session context menus infeatures/session-menu, Recent, Pinned Area, Inbox, Sidebar Sections, and the session-menu story.Investigation notes on self-dismissal in #1977
popup::close/popup::dismisscall site acrosscrates/opencode-ui/src/popup,features/session-menu, andapps/desktop: background hydration (INGEST_HYDRATE,unread::poll,preferences::poll,launch::poll,apply_first) never closes an open session context menu.computer use), which shows an active busy spinner (busy sessions intentionally omit Mark as unread); moving to the third row (Clash VPS, idle) and clicking outside dismissed the first menu viapopup-scrim, and the subsequent right-click opened the 9-row menu forClash VPS.Verification
pwsh scripts/guardrails.ps1— 11/11 passedcargo check -p opencode-feature-session-menu -p opencode-desktop— passedcargo clippy -p opencode-feature-session-menu --no-deps -- -D warnings— passed (zero diagnostics; zero new diagnostics in touchedopencode-desktopfiles)