Skip to content

[FEATURE]:Desktop: auto-open the sidebar browser when the task produces something to view (dev server / preview / local HTML), with a setting #60892

Open

Description

@Haochen-NB

Feature hasn't been suggested before.

  • I have verified this feature I'm about to request hasn't been suggested before.

Describe the enhancement you want to request

What I want

When a task produces something to look at — an agent starts a dev server, runs a preview command, or opens/creates an HTML page or report — the desktop sidebar browser should open by itself and show it, instead of me hunting for the browser tab every time. ZCode does this and it makes the loop "run → look → fix" feel continuous.

Current behavior

The session browser pane only appears when I open it manually, so I repeatedly: finish a step → click the browser tab → paste/refresh the URL → go back to the chat. On non-dev tasks too (generating a local HTML report and wanting to eyeball it), this is several clicks per iteration.

Proposed behavior

  1. Open the session's browser pane automatically when:
    • an agent tool navigates the browser (the desktop browser.* tools / the Browser contract's open/openFile), or
    • a shell command output reveals a local URL (localhost / 127.0.0.1 / 0.0.0.0 with a port) or a file the user is told to view.
  2. Open it in the background (do not steal focus from the composer) — layout.open(..., { background: true }) already exists for plugin panels, so the same policy should be available for the built-in pane.
  3. Respect manual dismissal: if I closed the pane in this session, do not reopen it on every turn — reopen only on an explicit new navigation, and remember the choice per session.
  4. Add a setting with three values: off / on agent navigation (default) / always (also on detected URLs in command output). Remember pane width per session.

Why this is cheap

The desktop already has: the per-session browser pane, the Browser contract (attached / canOpen / open / openFile), and background tab opening for plugins. This is mostly an auto-open policy + one setting, not a new subsystem.

Acceptance criteria

  • Start a task that runs a dev server → pane opens in the background with the URL, no focus jump.
  • Close the pane → next turn does not reopen it until a new navigation happens.
  • Setting off restores today's behavior exactly.
  • Works for file:// previews too (local HTML reports), not only http.

Related: #60379 (preview pane outside the active session), #60233 (sidebar tab UX), #60550 (pane attach bugs).

Activity

  1. opencodejr commented on Oct 31, 2026

    @opencodejr
    Contributor

    Thanks for the detailed write-up! You're asking for the Desktop session browser pane to open by itself, without taking focus, when an agent navigates the browser or, optionally, when a command prints a local URL or HTML file. There would be a setting (off / on agent navigation / always), and the app would remember when you closed the pane in a session. Right now the pane only opens when you open it manually, so this is new behaviour rather than a bug. The maintainers will consider it.

    Related issues:

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