Skip to content

TUI shows notifications and toasts for sessions from other projects on the same server #53203

Closed

Description

@OpeOginni

Description

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

  1. Open the TUI in project A and in project B (separate terminals, same background server).
  2. Run a prompt in project A that fails (e.g. a usage/limit error).
  3. Look at project B's TUI: a "Session failed" toast for project A's session appears.
  4. Click the toast: project A's session opens in project B and is added to its tabs.

Screenshot and/or share link

No response

Operating System

macOS

Terminal

Ghostty

Activity

  1. github-actions commented on Oct 4, 2026

    @github-actions
    Contributor

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

  2. opencodejr commented on Oct 27, 2026

    @opencodejr
    Contributor

    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.

  3. opencodejr commented on Oct 28, 2026

    @opencodejr
    Contributor

    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!

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions