@devries-cameron20 / t3code-1 / commits / 9b242e4d07
Fork 0

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

fix(web): reveal full composer command descriptions (#27414)

Co-authored-by: Julius Marminge <julius0216@outlook.com>

Lakshmi Tanmay committed Nov 13, 2026 at 04:17 UTC 9b242e4d076162baa4750c4b9fb79582e6b4216f
1 file changed +25 -4
apps/web/src/components/chat/ComposerCommandMenu.tsx
+25 -4
@@ -24,12 +24,13 @@ import {
24 UserRoundIcon,
25 type LucideIcon,
26 } from "lucide-react";
27 -import { memo, useLayoutEffect, useRef } from "react";
27 +import { memo, useLayoutEffect, useRef, useState } from "react";
28
29 import { type ComposerSlashCommand, type ComposerTriggerKind } from "../../composer-logic";
30 import { cn } from "~/lib/utils";
31 import { Badge } from "../ui/badge";
32 import { Command, CommandGroup, CommandItem, CommandList } from "../ui/command";
33 +import { Tooltip, TooltipPopup, TooltipTrigger } from "../ui/tooltip";
34 import { EnvironmentMachineIcon } from "../EnvironmentMachineIcon";
35 import { PierreEntryIcon } from "./PierreEntryIcon";
36 import { ProviderInstanceIcon } from "./ProviderInstanceIcon";
@@ -200,6 +201,15 @@ const ComposerCommandMenuItem = memo(function ComposerCommandMenuItem(props: {
201 props.triggerKind === "slash-command" && props.item.type === "skill" ? props.item.skill : null;
202 const pullRequestPresentation =
203 props.item.type === "pull-request" ? resolvePullRequestState(props.item.pullRequest) : null;
204 + const descriptionRef = useRef<HTMLSpanElement>(null);
205 + const [descriptionTruncated, setDescriptionTruncated] = useState(false);
206 + // oxlint-disable-next-line t3code/no-unreasoned-state-sync -- measures the rendered description so only cut-off text gets a tooltip
207 + useLayoutEffect(() => {
208 + const description = descriptionRef.current;
209 + setDescriptionTruncated(
210 + props.isActive && !!description && description.scrollWidth > description.clientWidth,
211 + );
212 + }, [props.isActive]);
213
214 return (
215 <CommandItem
@@ -263,9 +273,20 @@ const ComposerCommandMenuItem = memo(function ComposerCommandMenuItem(props: {
273 props.item.label
274 )}
275 </span>
266 - <span className="min-w-0 flex-1 truncate text-left text-secondary-label text-xs">
267 - {props.item.description}
268 - </span>
276 + <Tooltip open={descriptionTruncated}>
277 + <TooltipTrigger
278 + tabIndex={-1}
279 + render={
280 + <span
281 + ref={descriptionRef}
282 + className="min-w-0 flex-1 truncate text-left text-secondary-label text-xs"
283 + />
284 + }
285 + >
286 + {props.item.description}
287 + </TooltipTrigger>
288 + <TooltipPopup>{props.item.description}</TooltipPopup>
289 + </Tooltip>
290 {skillSourceKind ? (
291 <SkillSourceBadge
292 kind={skillSourceKind}