Skip to content

fix(web): turn off the floating workspace in the browser client and say why - #40699

Merged
nwparker merged 1 commit into
mainfrom
fix/40268-web-floating-workspace
Nov 10, 2026
Merged

nwparker merged 1 commit into
mainfrom
fix/40268-web-floating-workspace

Conversation

@nwparker

@nwparker nwparker commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

ELI5

In the browser version of Orca, the floating workspace's terminal and Markdown buttons did nothing. The floating workspace runs on your own computer, and a browser tab doesn't have one. The browser version now turns the floating workspace off and explains why, instead of showing buttons that silently fail.

Files Added Deleted Net
Test 2 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​48 0 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​48
Prod 7 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​50 $\color{#cf222e}{\Huge{\mathbf{−}}}$​9 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​41

What Changed

  • The web client's stored settings always read the floating workspace as off, even if an older build saved it as on (web-preferences-store.ts). So the floating workspace button and panel no longer appear in the browser.
  • In Settings, the "Enable floating workspace" switch is disabled, with the explanation "The floating workspace runs on your own computer, so it is only available in the Orca desktop app."
  • Anything that would reveal the panel now shows that same explanation instead of doing nothing: an activity row, "open terminal beside" on a floating tab, and "Edit file in Orca" for keybindings. revealFloatingWorkspacePanel returns false when it can't reveal, and callers stop there.
  • Desktop is unchanged.

Why

The floating workspace is deliberately local to the machine Orca runs on. The code refuses to mirror it from a host, so remote tabs can't overwrite it. A browser client has no local machine to spawn a terminal or save a note on. Making the floating workspace work in the browser would need a server-owned floating workspace, which is a separate feature and is on the backlog. Until then, turning it off with a clear reason meets the expected behaviour in the issue: "Unsupported actions should display an explanatory message."

Linked Issue

Fixes #40268. Thanks to codeleizy for the clear repro on WSL2 with orca serve.

Follow-up, not in this PR: a server-owned floating workspace for the web client (backlog).

Visual Proof

N/A: the change removes the floating workspace button from the web client and disables one settings switch with explanatory text. No new UI is added.

Testing

  • floating-workspace-panel-reveal.test.ts: in the web client, revealing returns false, shows the explanation and never turns the setting on.

  • web-floating-workspace-setting.test.ts: a stored floatingTerminalEnabled: true reads back as false.

  • Both fail without this change.

  • Every test file importing a changed module, plus src/renderer/src/lib and src/renderer/src/web/preload-api, passes. The full static job passes locally.

  • I manually tested these changes locally

  • Automated tests added/updated, or explained why not below

  • Every added test fails without this change and avoids the test anti-patterns

Risk

Only the browser client changes: it can no longer turn on the floating workspace. The host never receives this setting from the web client, so a paired desktop's own floating workspace is not touched. Revert is a plain revert.

Level: Low

Agent skill upstream boundary

  • Not applicable, or this change copies or mechanically translates no upstream skill-installer source, tests, fixtures, registry entries, path tables, comments, or documentation.

Checklist

  • This PR is small and focused
  • I explained what changed and why
  • I stated the risk: what could break, for whom, and how to back it out
  • Before/after screenshots or videos attached for UI changes, or N/A with reason
  • Self-reviewed for correctness, security, and performance
  • Cross-platform, SSH/remote, and path/shortcut impact considered (or N/A)
  • pnpm lint, pnpm typecheck, pnpm test, and pnpm build pass (or CI will cover; local preferred)

…ay why

The floating workspace's terminals and Markdown notes live on the user's own
computer, and a browser tab connected to `orca serve` has none, so in the web
client its terminal and Markdown actions did nothing.

The web client's stored settings now always read the floating workspace as
off, even if an older build saved it as on, so its button and panel do not
appear. The settings toggle is disabled with an explanation. Anything that
would reveal the panel (for example "open beside", an activity row or "Edit
file in Orca" for keybindings) shows that explanation instead of doing
nothing.

Fixes #40268
@nwparker
nwparker merged commit e5a1d2c into main Nov 10, 2026
47 of 48 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Floating Workspace terminal and Markdown files unresponsive in Web mode (v1.4.254)

1 participant