[Web] Session list doesn't update when switching projects in sidebar #8535

Closed
opened 2026-02-16 18:10:13 -05:00 by yindo · 2 comments
Owner

Originally created by @Yusuf007R on GitHub (Feb 4, 2026).

Originally assigned to: @adamdotdevin on GitHub.

Description

When switching projects via the left sidebar, the session list in the right panel doesn't update, it still shows sessions from the previously selected project.

investigating a little bit the LocalWorkspace component binds to globalSync.child() once on mount and doesn't re-bind when the project changes, so it keeps reading from the first project's store.
https://github.com/anomalyco/opencode/blob/ce87121067dfe2d8cfc6c16791ff444a60f5de1d/packages/app/src/pages/layout.tsx#L2472

I have a fix ready (just added keyed to force remount), but it's a really small one-line change. should I submit a PR or is it better to just describe the fix here?

Plugins

No response

OpenCode version

1.1.51

Steps to reproduce

Open the app with at least 2 projects in the sidebar
Click on Project A - session list shows Project A's sessions
Click on Project B in the sidebar
Sessions list will still show Project's A sessions

Screenshot and/or share link

Image

Operating System

Windows 11

Terminal

Windows Terminal

Originally created by @Yusuf007R on GitHub (Feb 4, 2026). Originally assigned to: @adamdotdevin on GitHub. ### Description When switching projects via the left sidebar, the session list in the right panel doesn't update, it still shows sessions from the previously selected project. investigating a little bit the LocalWorkspace component binds to globalSync.child() once on mount and doesn't re-bind when the project changes, so it keeps reading from the first project's store. https://github.com/anomalyco/opencode/blob/ce87121067dfe2d8cfc6c16791ff444a60f5de1d/packages/app/src/pages/layout.tsx#L2472 I have a fix ready (just added keyed to force remount), but it's a really small one-line change. should I submit a PR or is it better to just describe the fix here? ### Plugins _No response_ ### OpenCode version 1.1.51 ### Steps to reproduce Open the app with at least 2 projects in the sidebar Click on Project A - session list shows Project A's sessions Click on Project B in the sidebar Sessions list will still show Project's A sessions ### Screenshot and/or share link ![Image](https://github.com/user-attachments/assets/7ff22df4-d015-4f75-b202-adbaf04ebc20) ### Operating System Windows 11 ### Terminal Windows Terminal
yindo added the windowsbugweb labels 2026-02-16 18:10:13 -05:00
yindo closed this issue 2026-02-16 18:10:13 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Feb 4, 2026):

This issue might be a duplicate of existing issues. Please check:

  • #11964: [BUG]: Desktop: Sessions don't update on project change - describes the same problem where sessions don't update when switching between projects in the web UI, requiring a hard browser refresh.

Feel free to ignore if none of these address your specific case.

@github-actions[bot] commented on GitHub (Feb 4, 2026): This issue might be a duplicate of existing issues. Please check: - #11964: [BUG]: Desktop: Sessions don't update on project change - describes the same problem where sessions don't update when switching between projects in the web UI, requiring a hard browser refresh. Feel free to ignore if none of these address your specific case.
Author
Owner

@Yusuf007R commented on GitHub (Feb 4, 2026):

duplicated issue

@Yusuf007R commented on GitHub (Feb 4, 2026): duplicated issue
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#8535