Repository navigation
Files view keeps its selection and focus across session updates (WI-1682) - #1048
Merged
Merged
Conversation
added 3 commits
October 16, 2026 02:42
… rail (WI-1682) A session event replaces the rail's session rows, which remounts the file tree and leaves keyboard focus on the first session row. The selected path now lives with the tree's other view state, so the highlight and the focus come back with the tree. Signed-off-by: sprooty <sprooty@sprooty.com>
…e triggers (WI-1682) A tree refetch hands back new objects, so the list remounted the selected row and dropped its focus. Reuse the previous node when the path is unchanged, which keeps the row, the selection and the focus. The earlier focus-restore effect moved focus back out of the Sessions list and is gone. Signed-off-by: sprooty <sprooty@sprooty.com>
…tree (WI-1682) The refresh behind session-created rebuilds every session object, and the rail's list replaces a row whose object changed. A focused row then took the keyboard with it. Reuse the previous object when nothing the row renders changed, so the row and the focus stay. The test drives that session-created refresh and checks the selected file row is the same element; the file-tree comment no longer claims a remount restores focus. Signed-off-by: sprooty <sprooty@sprooty.com>
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 WI-1682: the left-panel Files view lost its selected file, and focus moved to the Sessions panel, whenever a session sent an update. The cause was the session-created path re-listing sessions and remounting a row in the rail.
The third Opus review found no blockers at 920fa6e (verdict on WI-1682).
🤖 Generated with Claude Code