Skip to content

feat(floating): give the floating workspace the tab bar's agent quick launch - #50

Merged
nplez1 merged 1 commit into
nplez1/Agent-Dash-Improvementsfrom
feat/floating-agent-quick-launch-parity
Oct 2, 2026
Merged

nplez1 merged 1 commit into
nplez1/Agent-Dash-Improvementsfrom
feat/floating-agent-quick-launch-parity

Conversation

@nplez1

@nplez1 nplez1 commented Oct 2, 2026 •

Copy link
Copy Markdown
Owner
Files Added Deleted Net
Test 3 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​169 $\color{#cf222e}{\Huge{\mathbf{−}}}$​223 $\color{#cf222e}{\Huge{\mathbf{−}}}$​54
Prod 8 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​59 $\color{#cf222e}{\Huge{\mathbf{−}}}$​108 $\color{#cf222e}{\Huge{\mathbf{−}}}$​49

ELI5

The floating workspace had its own agent button in a different style — a boxed little button next to the window's maximize and minimize — while the main window's tab bar had the tidy split button (agent logo, click to launch, chevron for more options). Same action, two different-looking controls. Now the floating workspace uses the same split button as the tab bar, and its window controls are just window buttons again.

What Changed

Before: the floating workspace's tab strip kept a plain +, and its agent launch lived in the window controls as a boxed 24px outline button (border, secondary fill, shadow) beside maximize and minimize. The main window's tab bar shows the same action as one split control: a 28px agent-glyph primary that launches the default agent, plus a chevron (or a hold on the primary) that opens the create menu.

After: the floating tab strip renders that same split control — agent glyph primary, chevron menu, hold to open the menu — and the window controls hold only maximize and minimize. The two hosts now read as one design.

Mechanism:

  • TabBarNewTabButton now names where its agent comes from instead of a boolean that meant "hide it": detected (the configured default, only where the tab's worktree detects it), configured (the settings default alone), none (plain +). The floating panel asks for configured — its synthetic worktree has no detected agents, and its launch path resolves a genuinely missing agent itself, which is exactly why the old button could not use the detected path.
  • FloatingTerminalWindowControls loses its agent button and the bespoke launch behind it. The split control's launch is the shared launchAgentFromNewTabEntry — the same call the floating create menu's agent entries already used.
  • The launch-caller fixture's floating profile follows the call site: same synthetic worktree id (a workspace with no repo behind it), now through the tab bar's launch shape.

Why

The two controls do one job — start an agent in the floating workspace — and the tab bar already has the better control for it. Keeping a second, differently-styled copy in the window controls made the same action look different between hosts, and kept the window controls from being purely window controls. Reusing the tab bar's control removes the duplicate launch path instead of re-skinning it.

Alternatives considered: restyling the boxed button to look like the tab bar's (rejected — the floating workspace would still carry two create-ish controls where the main window carries one), and teaching the detected-agent path about the synthetic worktree (rejected — the shared control already has a source for hosts with no detection data, so a second detection path would be the duplication this change removes).

Linked Issue

N/A — fork-local change against the fork's own default branch.

Visual Proof

Floating workspace, before — plain + in the tab strip, boxed agent button (Open Claude in floating workspace) between it and the window controls:

before

After — the tab strip carries the same split control as the main tab bar (agent glyph + chevron), and the window controls hold only maximize and minimize:

after

Measured over CDP in the running app (agent claude configured): before — New tab 28×28 at x=602 plus Open Claude in floating workspace 24×24 at x=1399; after — Open Claude in a new tab 28×28 at x=602 with More options 20×28 at x=630, and the window controls stop at maximize/minimize.

Testing

  • pnpm tc clean, full pnpm exec oxlint clean, oxfmt clean, check:code-quality:changed 0 findings.
  • TabBarNewTabButton.test.tsx: the old "the surface owns its own agent button" case becomes four cases for the named sources — configured offers the configured agent with an empty detection list, detected refuses an agent the host does not detect, configured keeps the plain + when the agent is disabled, none keeps the plain + whatever is configured.
  • use-tab-bar-create-menu-controller.test.ts (new): the three guarantees the deleted window-controls tests pinned now live where the launch lives — the launch goes through the shared funnel rather than the tab store, the launched terminal takes focus after the menu closes (and not before), and a launch the planner refuses is reported. The fourth deleted test asserted that the floating workspace stays off the structured route; that is a shared-resolver invariant that structured-native-chat-launch-route.test.ts already pins in its blocker table.
  • Full sweep around the change: 89 test files / 1001 tests pass (tab-bar, floating-terminal, the four launch-caller suites, the structured-route suite).
  • Rendered in the dev app with a configured agent: the floating strip shows the split control and the window controls show only maximize and minimize.

Platforms: macOS (dev). The control is the tab bar's own component, so its styling, hold-to-open behaviour and platform shortcut labels follow that component wherever it renders.

  • I manually tested these changes locally
  • Automated tests added/updated, or explained why not below

AI Disclosure

Implemented with an AI coding agent (pi), reviewed by the author.

Review

Agent skill upstream boundary

  • Not applicable, or this change follows docs/reference/agent-skill-sharing-upstream-boundary.md and copies or mechanically translates no upstream skill-installer source, tests, fixtures, registry entries, path tables, comments, or documentation.

Notes

Checklist

  • This PR is small and focused
  • I explained what changed and why (ELI5, the user-facing before/after, the mechanism, and why over the alternatives)
  • 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 and pnpm typecheck pass locally; pnpm test is green for every suite around this change (89 files / 1001 tests) and pnpm build is left to CI

… launch

The floating workspace launched its default agent from a boxed 24px outline button in
its window controls (border, secondary fill, shadow), next to maximize and minimize,
while its tab strip kept a plain "+". The main window's tab bar has one control for the
same job: a 28px split button whose primary launches the default agent and whose chevron
(or a hold) opens the create menu. Side by side, the same action looked like two different
controls.

Before: [tab][tab] + … boxed [agent][⤢][−]. After: [tab][tab] [agent][⌄] … [⤢][−], the
same split control the main tab bar renders, with the window controls back to being window
buttons.

- TabBarNewTabButton now names where its agent comes from instead of a boolean that meant
  "hide it": `detected` (the configured default, only where the host detects it), `configured`
  (the settings default alone), and `none` (plain "+"). The floating panel asks for
  `configured`, because its synthetic worktree has no detected agents and its launch path
  resolves a genuinely missing agent itself.
- FloatingTerminalWindowControls loses its agent button and the launch path behind it; the
  split control's launch is the shared `launchAgentFromNewTabEntry`, the same one the create
  menu's agent entries already used from the floating tab strip. That path reports
  `launchSource: 'tab_bar_quick_launch'` rather than the deleted button's `'shortcut'`, which
  is what it is now — a tab-bar quick launch.
- The launch-caller fixture's floating profile follows the call site: same synthetic worktree
  id (no repo behind it), now through the tab bar's launch with the group it resolves to.
- The three guarantees the deleted button's tests pinned (launch through the shared funnel
  rather than the tab store, focus the launched terminal on menu close, report a launch the
  planner refused) move to use-tab-bar-create-menu-controller.test.ts, the code that now owns
  them. The fourth, "the floating workspace stays off the structured route", is a shared
  resolver invariant that structured-native-chat-launch-route.test.ts already pins.
- Also regenerates en-runtime-required.json: the two strings the deleted button referenced are
  still in en.json, and an English entry with no call site has to ship — a dynamic key resolves
  from the catalog, so the tool cannot tell it apart from a live one.

Verified: `pnpm tc` clean, full `pnpm lint` clean (including the localization verifiers),
changed-code gate clean, and the tab-bar, floating-terminal and launch-caller suites pass
(89 files, 1001 tests). Rendered in the dev app with an agent configured: the strip shows the
split control and the window controls show only maximize and minimize.
@nplez1
nplez1 merged commit 4eb76d7 into nplez1/Agent-Dash-Improvements Oct 2, 2026
32 checks passed
nplez1 pushed a commit that referenced this pull request Oct 19, 2026
…iew off the deprecated owner resolver (stablyai#30562)

* refactor(renderer): fold browser creation, file actions and doc-preview callers off the deprecated owner resolver

The creation-action policy and browser creation (#3, #48) fold together, so the provider the
policy offers is the one creation uses. Browser panes, page lifecycle and conversion, tab
duplication, the explorer tree pane, doc-preview actions and editor path moves (#21, #43, #45-#47,
#49, #50) read runtimeEnvironmentIdWithLegacyFallbackUnlessTwin. File-explorer writes on a folder
(#51) take the owner from the rows alone, never from the focused server. Deprecated importers
16 -> 6.

* refactor(renderer): fold file preview off the deprecated owner resolver; Open in Orca Browser refuses a twin

A project two hosts publish reads as no server for the doc-preview plan, but the file:// path now
refuses it with its own message instead of opening this machine's copy (#7). Deprecated importers
6 -> 5.

* fix(renderer): a twin's file preview and open-externally refuse instead of opening this machine's copy

Codex P2 on the F7 folds: a folder twin read as no server, so the preview plan built a local
file:// tab and open-externally handed the path to this machine's OS. Both now check the owner
for ambiguity first. Also fix two test fixtures that broke the renderer typecheck.

* refactor(renderer): move the file:// open target out of file-preview.ts

file-preview.ts crossed its line limit after main grew it; the file:// target, its type and its two
refusal messages move to workspace-file-browser-open-target.ts, which they never depended on
file-preview for.

* test: mock the replacement resolver in the quick-action availability suite (Codex P2)
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.

1 participant