Skip to content

Preserve browser sidebar collapsed state when switching chats#3979

Merged
louis030195 merged 2 commits into
screenpipe:mainfrom
thisisharsh7:fix/browser-sidebar-collapsed-state
Jun 10, 2026
Merged

Preserve browser sidebar collapsed state when switching chats#3979
louis030195 merged 2 commits into
screenpipe:mainfrom
thisisharsh7:fix/browser-sidebar-collapsed-state

Conversation

@thisisharsh7

@thisisharsh7 thisisharsh7 commented Jun 10, 2026

Copy link
Copy Markdown
Contributor

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: false on 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

@thisisharsh7 thisisharsh7 marked this pull request as ready for review June 10, 2026 18:30

@louis030195 louis030195 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@louis030195

Copy link
Copy Markdown
Collaborator

@thisisharsh7 fyi we still have issue that if a pipe open browser and im in another chat it pop the sidebar there

@louis030195 louis030195 merged commit a202893 into screenpipe:main Jun 10, 2026
8 of 9 checks passed
@thisisharsh7

Copy link
Copy Markdown
Contributor Author

yeah @louis030195 I am checking that as well

@louis030195

Copy link
Copy Markdown
Collaborator
image

not sure if related but agent cannot open browser anymore in background @thisisharsh7

@thisisharsh7

Copy link
Copy Markdown
Contributor Author

@louis030195 are you seeing this in Pipe or normal chat

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants