You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
TUI shows notifications and toasts for sessions from other projects on the same server #53203
With two TUI instances open on different projects (both connected to the same background server), a session in project A hit a usage error while I was looking at the TUI for project B. Project B showed a "Session failed" toast for project A's session, and the session then appeared in project B's tab sidebar.
The event stream is server-wide, and the TUI notifications plugin toasts/notifies for every session on the server without checking whether it belongs to the current instance. The toast includes an "Open" action, and clicking anywhere on the toast runs it, which navigates to the foreign session and adds it as a tab. Done, permission and input-needed notifications leak the same way.
Plugins
None
OpenCode version
v2.0.22
Steps to reproduce
Open the TUI in project A and in project B (separate terminals, same background server).
Run a prompt in project A that fails (e.g. a usage/limit error).
Look at project B's TUI: a "Session failed" toast for project A's session appears.
Click the toast: project A's session opens in project B and is added to its tabs.
Thanks for the clear report! I reproduced this on v2.0.22. With a TUI open in project B, a failing session in project A (same background server) showed a "Session failed" toast in project B. Clicking it opened project A's session there and added it to project B's tabs.
On the latest dev (fd8268ea5) the same steps no longer show the toast in project B: project A's session still fails, but only project A sees it. A failing session in project B itself still shows the toast as expected. So this looks already fixed, and the fix should be in an upcoming release. I only tested the failure toast; the done, permission and input-needed notifications go through the same code, so they are likely covered too.
The bot will close this issue in 1 day unless you reply that it still happens, for example on a newer version than 2.0.22.
Related: #59386 (notifications firing in every TUI attached to the same session) is a separate issue.
Closing this as completed. On v2.0.22, a failing session in another project on the same server showed a "Session failed" toast in this TUI, and clicking the toast opened that session as a tab here. On the latest dev (fd8268ea5) that no longer happens: only the project that owns the session shows the toast. So this is most likely already fixed, and the fix should be in an upcoming release.
We waited a day in case it still happened for you. If you still see toasts or notifications from other projects on a version newer than 2.0.22, please comment here or open a new issue with the version. Thanks for the clear report!
Activity
github-actions commentedon Oct 4, 2026
This issue might be a duplicate of existing issues. Please check:
opencodejr commentedon Oct 27, 2026
Thanks for the clear report! I reproduced this on v2.0.22. With a TUI open in project B, a failing session in project A (same background server) showed a "Session failed" toast in project B. Clicking it opened project A's session there and added it to project B's tabs.
On the latest
dev(fd8268ea5) the same steps no longer show the toast in project B: project A's session still fails, but only project A sees it. A failing session in project B itself still shows the toast as expected. So this looks already fixed, and the fix should be in an upcoming release. I only tested the failure toast; the done, permission and input-needed notifications go through the same code, so they are likely covered too.The bot will close this issue in 1 day unless you reply that it still happens, for example on a newer version than 2.0.22.
Related: #59386 (notifications firing in every TUI attached to the same session) is a separate issue.
opencodejr commentedon Oct 28, 2026
Closing this as completed. On v2.0.22, a failing session in another project on the same server showed a "Session failed" toast in this TUI, and clicking the toast opened that session as a tab here. On the latest
dev(fd8268ea5) that no longer happens: only the project that owns the session shows the toast. So this is most likely already fixed, and the fix should be in an upcoming release.We waited a day in case it still happened for you. If you still see toasts or notifications from other projects on a version newer than 2.0.22, please comment here or open a new issue with the version. Thanks for the clear report!