Repository navigation
fix(web): turn off the floating workspace in the browser client and say why - #40699
Merged
Merged
Conversation
…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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.
What Changed
web-preferences-store.ts). So the floating workspace button and panel no longer appear in the browser.revealFloatingWorkspacePanelreturns false when it can't reveal, and callers stop there.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 storedfloatingTerminalEnabled: truereads back as false.Both fail without this change.
Every test file importing a changed module, plus
src/renderer/src/libandsrc/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
Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)