Preserve browser sidebar collapsed state when switching chats#3979
Merged
louis030195 merged 2 commits intoJun 10, 2026
Merged
Conversation
louis030195
reviewed
Jun 10, 2026
louis030195
left a comment
Collaborator
There was a problem hiding this comment.
apps/screenpipe-app-tauri/components/browser-sidebar.tsx:334 — sweet fix, makes total sense
@thisisharsh7 lgtm. sweet fix for the sidebar state.
generated by the screenpipe pr-review pipe (https://screenpi.pe), not written by a human — reply and tag @louis030195 if it got something wrong.
Collaborator
|
@thisisharsh7 fyi we still have issue that if a pipe open browser and im in another chat it pop the sidebar there |
Contributor
Author
|
yeah @louis030195 I am checking that as well |
Collaborator
not sure if related but agent cannot open browser anymore in background @thisisharsh7 |
Contributor
Author
|
@louis030195 are you seeing this in Pipe or normal chat |
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.

This PR fixes the browser sidebar ignoring collapsed state when switching between chats. Toggling off the sidebar, switching to another chat, and switching back would re-open it.
The navigate event listener was unconditionally setting
collapsed: falseon restore events, overriding the persisted collapsed state that the restore effect had just correctly applied.Now ownerless (restore/reload) events only persist the URL without touching collapsed state.
Before -
Screen.Recording.2026-06-10.at.11.41.38.PM.mov
After -
Screen.Recording.2026-06-10.at.11.33.53.PM.mov