Repository navigation
feat(floating): give the floating workspace the tab bar's agent quick launch - #50
Merged
nplez1 merged 1 commit intoOct 2, 2026
Conversation
… 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
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)
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
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:
TabBarNewTabButtonnow 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 forconfigured— 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.FloatingTerminalWindowControlsloses its agent button and the bespoke launch behind it. The split control's launch is the sharedlaunchAgentFromNewTabEntry— the same call the floating create menu's agent entries already used.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: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:
Measured over CDP in the running app (agent
claudeconfigured): before —New tab28×28 at x=602 plusOpen Claude in floating workspace24×24 at x=1399; after —Open Claude in a new tab28×28 at x=602 withMore options20×28 at x=630, and the window controls stop at maximize/minimize.Testing
pnpm tcclean, fullpnpm exec oxlintclean,oxfmtclean,check:code-quality:changed0 findings.TabBarNewTabButton.test.tsx: the old "the surface owns its own agent button" case becomes four cases for the named sources —configuredoffers the configured agent with an empty detection list,detectedrefuses an agent the host does not detect,configuredkeeps the plain+when the agent is disabled,nonekeeps 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 thatstructured-native-chat-launch-route.test.tsalready pins in its blocker table.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.
AI Disclosure
Implemented with an AI coding agent (pi), reviewed by the author.
Review
Agent skill upstream boundary
docs/reference/agent-skill-sharing-upstream-boundary.mdand copies or mechanically translates no upstream skill-installer source, tests, fixtures, registry entries, path tables, comments, or documentation.Notes
nplez1/Agent-Dash-Improvements, the dashboard/Tasks top-edge work). The base here is that branch's head, so this diff is only the floating change; merge after feat(views): reclaim the dashboard and Tasks top edge, drop their close buttons #48. It is cut that way becausenplez1/mainstill carries themax-lineslint debt that feat(views): reclaim the dashboard and Tasks top edge, drop their close buttons #48'sfix(lint)commit clears, and a PR cut straight fromnplez1/mainwould fail static analysis for reasons unrelated to this change. Once feat(views): reclaim the dashboard and Tasks top edge, drop their close buttons #48 lands, this retargets tonplez1/main(or merges as-is).en-runtime-required.jsonis regenerated here too: the two strings the deleted button referenced are still inen.json, and an English entry with no call site has to ship, so the tool folds them into the boot bundle rather than dropping them.launchSource: 'shortcut'; the split control's launch reportstab_bar_quick_launch, which is what it is now — a tab-bar quick launch.Checklist
N/Awith reasonpnpm lintandpnpm typecheckpass locally;pnpm testis green for every suite around this change (89 files / 1001 tests) andpnpm buildis left to CI