Repository navigation
fix(picker): keep a superseded refresh from overwriting the alt-x layout - #4708
Merged
Merged
Conversation
`provide_layout` wrote the session-shared `layout_slot` unconditionally, while `on_skeleton` guards the other session-shared writes (`shared_items`, the shortcut table) on the spawn generation. After two rapid alt-r presses, a superseded spawn whose skeleton landed last also left its pre-refresh layout in the slot, so a later alt-x morph row rendered on the old column grid. Take the same `is_current()` check inside the lock, and refresh the module summary, which still described three sinks.
This was referenced Nov 5, 2026
1 task
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.
After two quick
alt-rrefreshes in thewt switchpicker, a superseded refresh whose skeleton lands last could overwrite the layout thatalt-xuses, so a lateralt-xrendered its/ branchrow on the old column grid.provide_layoutwrote the session-sharedlayout_slotunconditionally.on_skeletonalready guards the other session-shared writes (shared_itemsand the shortcut table) withspawn_gen.is_current(). This change applies the same check inside the lock and updates the module summary, which still described three sinks.superseded_skeleton_leaves_shared_state_alonenow also checks that a live spawn publishes its layout and that a superseded one leaves the slot empty. The new assertion fails without the guard.The nightly sweep (run 41980394445) prepared this fix, but its PR was refused twice because the bot had reached its creation allowance (#4706). The daily run review opened it from the pushed branch without changes.