For agentic workers: REQUIRED SUB-SKILL: Use superpowers:subagent-driven-development (recommended) or superpowers:executing-plans to implement this plan task-by-task. Steps use checkbox (
- [ ]) syntax for tracking.
Goal: Web app and mobile remote control hide and block the embedded Browser side pane feature while desktop keeps it.
Architecture: Add a supportsEmbeddedBrowser capability at the Root/App boundary, defaulting to desktop-only. Thread it through quick pick, side pane rendering, and browser tab callbacks so unsupported shells cannot create Browser side pane tabs.
Tech Stack: React 19, TypeScript, Zustand state, Vitest unit tests, existing UI shell components.
DESIGN.md.packages/ui/src/logger.ts.pnpm typecheck and pnpm lint.Files:
packages/ui/test/quickPickCommands.test.tspackages/ui/test/animatedSidePanePanelLayout.test.tsInterfaces:
createQuickPickCommands(options)Produces: failing tests for supportsEmbeddedBrowser
[ ] Step 1: Add failing quick pick test
Assert that supportsEmbeddedBrowser: false removes toggle-preview and add-browser-tab.
Assert that the exported launcher id resolver omits browser when supportsEmbeddedBrowser: false.
Run: pnpm vitest run packages/ui/test/quickPickCommands.test.ts packages/ui/test/animatedSidePanePanelLayout.test.ts
Expected: at least one assertion/export failure caused by missing capability support.
Files:
packages/ui/src/root/types.tspackages/ui/src/Root.tsxpackages/ui/src/app-shell/types.tspackages/ui/src/App.tsxpackages/web/src/main.tsxInterfaces:
Produces: optional supportsEmbeddedBrowser?: boolean prop
[ ] Step 1: Add Root/App prop
Add supportsEmbeddedBrowser?: boolean with comments explaining it is desktop-only by default.
In Root/App, use explicitSupportsEmbeddedBrowser ?? Boolean(isDesktop).
Add supportsEmbeddedBrowser={false} to all Web Root render paths.
Files:
packages/ui/src/quickpick/quickPickCommands.tspackages/ui/src/hooks/useAppPanels.tspackages/ui/src/app-shell/WorkspaceShellLayout.tsxpackages/ui/src/app-shell/AnimatedSidePanePanel.tsxInterfaces:
supportsEmbeddedBrowserProduces: browser entries omitted and tab creation blocked
[ ] Step 1: Gate quick pick
Only include toggle-preview and add-browser-tab when supportsEmbeddedBrowser is true.
handleToggleBrowser and handleOpenBrowserTab return early when unsupported. handleOpenBrowserUrl keeps Web external URL fallback but does not create Browser side pane tabs.
Add a pure launcher id resolver and use it to omit Browser items when unsupported.
Files:
No new files beyond previous tasks
[ ] Step 1: Run targeted tests
Run: pnpm vitest run packages/ui/test/quickPickCommands.test.ts packages/ui/test/animatedSidePanePanelLayout.test.ts
Run: pnpm typecheck
Run: pnpm lint
Commit with Conventional Commits, for example:
git commit -m "feat(ui): disable embedded browser in web app"