Skip to content

fix: show full command in tooltip on truncated tool rows#3249

Draft
MattPua wants to merge 1 commit into
mainfrom
posthog-code/tool-command-tooltip
Draft

fix: show full command in tooltip on truncated tool rows#3249
MattPua wants to merge 1 commit into
mainfrom
posthog-code/tool-command-tooltip

Conversation

@MattPua

@MattPua MattPua commented Jul 7, 2026

Copy link
Copy Markdown
Member

Problem

When a tool's terminal command is longer than the row width it gets truncated with an ellipsis, and there was no tooltip to reveal what actually ran. It relied on the native title attribute, which is unreliable/absent in-app.

Changes

  • Replaced native title={command} on the truncated command row with the Tooltip primitive
  • Tooltip renders the full command in a wrapping mono block on hover, so a truncated row always surfaces exactly what ran
  • Applied to both chrome paths (new chat thread + legacy thread)

How did you test this?

  • pnpm --filter @posthog/ui typecheck passes
  • biome check passes on the changed file

Automatic notifications

  • Publish to changelog?
  • Alert Sales and Marketing teams?

Truncated terminal-command rows relied on the native `title` attribute, which is unreliable/absent in-app, so users couldn't see the full command. Swap it for the Tooltip primitive, rendering the full command in a wrapping mono block on hover.

Generated-By: PostHog Code
Task-Id: 9f618854-2b33-47b4-9c9f-81e9d196b329
@trunk-io

trunk-io Bot commented Jul 7, 2026

Copy link
Copy Markdown

Merging to main in this repository is managed by Trunk.

  • To merge this pull request, check the box to the left or comment /trunk merge below.

After your PR is submitted to the merge queue, this comment will be automatically updated with its status. If the PR fails, failure details will also be posted here

@github-actions

github-actions Bot commented Jul 7, 2026

Copy link
Copy Markdown

React Doctor found no issues in the changed files. 🎉

Reviewed by React Doctor for commit 1dbbab4.

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