@devries-cameron20 / t3code-1 / commits / 70bdbc30b2
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

fix(web): composer host and workspace tooltips show their shortcuts (#21167)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

Jordan Munch O'Hare committed Oct 18, 2026 at 21:10 UTC 70bdbc30b2934db7845d77751d9de5b730c3d674
2 files changed +19 -1
apps/web/src/components/BranchToolbarEnvModeSelector.tsx
+8
@@ -20,6 +20,9 @@ import {
20 SelectValue,
21 } from "./ui/select";
22 import { Tooltip, TooltipPopup, TooltipTrigger } from "./ui/tooltip";
23 +import { useAtomValue } from "@effect/atom-react";
24 +import { shortcutLabelForCommand } from "../keybindings";
25 +import { primaryServerKeybindingsAtom } from "../state/server";
26
27 const PREVIOUS_WORKTREE_SELECT_VALUE = "previous-worktree";
28
@@ -45,6 +48,10 @@ export const BranchToolbarEnvModeSelector = memo(function BranchToolbarEnvModeSe
48 onUsePreviousWorktree,
49 }: BranchToolbarEnvModeSelectorProps) {
50 const composerFloatingLayerProps = useComposerMenuProps();
51 + const shortcutLabel = shortcutLabelForCommand(
52 + useAtomValue(primaryServerKeybindingsAtom),
53 + "composer.workspace",
54 + );
55 const showPreviousWorktree = Boolean(previousWorktreeLabel && onUsePreviousWorktree);
56 const envModeItems = [
57 {
@@ -137,6 +144,7 @@ export const BranchToolbarEnvModeSelector = memo(function BranchToolbarEnvModeSe
144 {effectiveEnvMode === "worktree"
145 ? resolveEnvModeLabel("worktree")
146 : resolveCurrentWorkspaceLabel(activeWorktreePath)}
147 + {shortcutLabel ? ` · ${shortcutLabel}` : null}
148 </TooltipPopup>
149 </Tooltip>
150 <SelectPopup
apps/web/src/components/BranchToolbarEnvironmentSelector.tsx
+11 -1
@@ -1,6 +1,9 @@
1 import { ComposerSelectControl } from "./chat/ComposerControl";
2 import { ComposerContextLabel } from "./ComposerContextLabel";
3 import { Tooltip, TooltipTrigger, TooltipPopup } from "./ui/tooltip";
4 +import { useAtomValue } from "@effect/atom-react";
5 +import { shortcutLabelForCommand } from "../keybindings";
6 +import { primaryServerKeybindingsAtom } from "../state/server";
7 import type { EnvironmentId } from "@t3tools/contracts";
8 import { ScaleIcon } from "lucide-react";
9 import { memo } from "react";
@@ -35,6 +38,10 @@ export const BranchToolbarEnvironmentSelector = memo(function BranchToolbarEnvir
38 onEnvironmentChange,
39 }: BranchToolbarEnvironmentSelectorProps) {
40 const composerFloatingLayerProps = useComposerMenuProps();
41 + const shortcutLabel = shortcutLabelForCommand(
42 + useAtomValue(primaryServerKeybindingsAtom),
43 + "composer.host",
44 + );
45 const activeEnvironment =
46 availableEnvironments.find((env) => env.environmentId === environmentId) ?? null;
47
@@ -107,7 +114,10 @@ export const BranchToolbarEnvironmentSelector = memo(function BranchToolbarEnvir
114 <SelectValue />
115 </ComposerContextLabel>
116 </TooltipTrigger>
110 - <TooltipPopup>{autoEnvironmentLabel ?? activeEnvironment?.label ?? "Run on"}</TooltipPopup>
117 + <TooltipPopup>
118 + {autoEnvironmentLabel ?? activeEnvironment?.label ?? "Run on"}
119 + {shortcutLabel ? ` · ${shortcutLabel}` : null}
120 + </TooltipPopup>
121 </Tooltip>
122 <SelectPopup alignItemWithTrigger={false} {...composerFloatingLayerProps}>
123 <SelectGroup>