Skip to content

[Bug]: WSL-only: Annotate and Screenshot buttons are gone for every browser tab since #35424 streams them #38509

Open

Description

@ardeae-praktijk

Area

apps/web + apps/desktop: browser panel on Windows with the WSL-only backend.

Summary

On 0.1.10 with wslOnly: true, the Annotate button and the Screenshot button are missing for every browser tab, including tabs I open myself. #35424 fixed typed URLs in WSL-only mode (thanks!) by streaming the server tab, but a streamed tab gets no annotation. So a WSL-only user can now navigate, but can no longer annotate a page for the agent.

Steps to reproduce

  1. Windows 11, T3 Code 0.1.10 (desktop + server), desktop-settings.json: "wslBackendEnabled": true, "wslOnly": true.
  2. Browser panel → + → type dekies.be → Enter.
  3. The page loads with the "You have control / Release control" bar (streamed server tab).

Expected: the toolbar shows Annotate preview and Screenshot, as it did before (they were there on 0.1.9 when the tab rendered natively).
Actual: only Picture-in-Picture and the overflow menu are shown.

Why (from the shipped bundle)

In PreviewPanel, the toolbar gets onPickElement and onCapture only when the tab is not a streamed server tab:

W = H?.runtime === "server" && !U   // streamed server tab
onCapture     = Z && B && !W ? ... : undefined
onPickElement = Z && B && !W ? ... : undefined

In WSL-only mode every tab is now W, so both buttons go away.

Related

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