8000 Links: route OpenCode's own link clicks into the wmux panel · Issue #339 · amirlehmam/wmux · GitHub
[go: up one dir, main page]

Skip to content

Links: route OpenCode's own link clicks into the wmux panel #339

Closed

Description

@Mattheinrichs

What are you trying to do?

Click a link in an OpenCode v2 pane in wmux (WSL) and have it open in the wmux browser panel, like Claude Code panes and shell output. Today plain click opens the system browser and Ctrl+click is the only route to the panel.

This is the other side of #280: while an app captures the mouse, the plain click belongs to the app. The fix is to make that app's open go through wmux.

What would you like wmux to do?

Route app-opened links through wmux: set BROWSER=wmux-open-url for WSL panes, ship that shim in cli-bin, and add wmux open <url> that calls the renderer's openInWmuxBrowser() so Settings → Browser → Links still decides panel vs system browser. The verb must not wait for CDP, and the shim must fall back to the system browser if wmux is unreachable.

Codex gets this immediately (its Rust open path already honours $BROWSER). OpenCode needs a one-file change upstream: anomalyco/opencode#58526

What do you do today instead?

Activity

  1. amirlehmam commented on Oct 24, 2026

    @amirlehmam
    Owner

    Shipped in v2.40.0. Thanks for the detailed report!

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0