Skip to content

Commit 9c07dbe

Browse files
s243aclaude
andcommitted
fix(web): show the full path in file link tooltips
A file link's tooltip showed the workspace-relative path, which the chip already shows in shortened form. When the linked path is the workspace root, formatWorkspaceRelativePath collapses it to the bare workspace label, so the chip and its tooltip both read the same single word and the full path is only reachable via right-click -> Copy full path. Asking an agent to print its working directory renders as "The current working directory is claude." — hovering repeats "claude" rather than /home/user/Projects/UnifyWeaver/context/claude. The tooltip now shows targetPath, the same string Copy full path already uses. Model: Claude Opus 5. Harness: Claude Code. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01NJkDp6cPBBu2aGCsMHfv6N
1 parent 7107a98 commit 9c07dbe

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎apps/web/src/components/ChatMarkdown.tsx‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1323,8 +1323,10 @@ const MarkdownFileLink = memo(function MarkdownFileLink({
13231323
side="top"
13241324
className="max-w-[min(40rem,calc(100vw-2rem))] font-mono text-[11px] leading-tight"
13251325
>
1326+
{/* The full path: the chip already shows the shortened form, and a link
1327+
to the workspace root collapses to a bare label that repeats it. */}
13261328
<div className="overflow-x-auto whitespace-nowrap [scrollbar-color:color-mix(in_srgb,var(--border)_78%,transparent)_transparent] [scrollbar-width:thin] [&::-webkit-scrollbar]:h-1.5 [&::-webkit-scrollbar-thumb]:rounded-full [&::-webkit-scrollbar-thumb]:bg-[color-mix(in_srgb,var(--border)_78%,transparent)] [&::-webkit-scrollbar-track]:bg-transparent">
1327-
{displayPath}
1329+
{targetPath}
13281330
</div>
13291331
</TooltipPopup>
13301332
</Tooltip>

0 commit comments

Comments
 (0)