Skip to content

Opencode window leaks across tabpages when switching tabs during a session #474

Closed

Description

@pirey

When I open the Opencode window and switch to another tabpage
while a response is being generated, the Opencode window is popping up on the
new tab. It should only show on the tabpage where I originally opened it.

Steps to reproduce:

  1. :Opencode to open the UI (default position = 'right' split)
  2. Submit a prompt
  3. While the response is streaming, switch to another tabpage with :tabnext or :tabnew
  4. The Opencode split window appears on the new tabpage

Activity

  1. sudo-tee commented on Jul 21, 2026

    @sudo-tee
    Owner

    Thanks for the report I will have a look.

  2. self-assigned this
    on Jul 21, 2026
  3. sudo-tee commented on Jul 21, 2026

    @sudo-tee
    Owner

    @pirey I created an MR with a fix #475

    Can you let me know if this resolves your issue ?

  4. pirey commented on Jul 22, 2026

    @pirey
    ContributorAuthor

    it seems like the issue still there

    Screen.Recording.2026-07-22.at.05.16.11.mov
  5. sudo-tee commented on Jul 22, 2026

    @sudo-tee
    Owner

    Thanks for checking, I will have another look

  6. sudo-tee commented on Jul 23, 2026

    @sudo-tee
    Owner

    @pirey

    I did a subsequent fix, with a more agressibe approach, never update the actual window when not visible, and resume when switching back to the onew tab.

    I wasn't able to reproduce the issue after.

    Let me know if it works for you :)

  7. pirey commented on Jul 24, 2026

    @pirey
    ContributorAuthor

    alright it seems the issue is fixed now.

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

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions