Skip to content

[Bug] Opening additional windows in a remote workspace duplicates terminal output #1082

Closed

Description

@xyalter

Description

In the desktop client, opening another window from a remote workspace, such as the local conversation import window, causes terminal output to be displayed repeatedly.

Both typed and pasted text are affected: opencode can appear as ooppeennccooddee. Commands execute normally, but their echo and output are duplicated. Closing the additional window restores normal display for new output.

Steps to reproduce

  1. Connect the desktop client to a remote codeg-server and open a workspace.
  2. Open an integrated terminal.
  3. Open another window, such as the local conversation import window.
  4. Type, paste, or run a command in the terminal and observe duplicated output.

Expected behavior

Opening additional windows should not duplicate terminal output.

Cause

The Rust proxy forwards each frame separately to every subscribed webview using EventTarget::webview(label). Copies for the same remote connection share the event name remote-ws-event-{connectionId}.

The frontend uses a global listen() callback without a target, so it also consumes copies addressed to other webviews. The listener should be scoped to the current webview.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions