feat: show full thread title in a tooltip when hovering sidebar thread names#1994
Conversation
- Add the full thread title to sidebar row tooltips - Suppress the tooltip while a thread is being renamed
- move thread title hover text into the tooltip component - update the browser test to assert the rendered tooltip instead of a title attribute
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
ApprovabilityVerdict: Approved This PR adds a tooltip to show the full thread title when hovering over truncated sidebar thread names. The changes are minimal UI enhancements (wrapping an existing span with tooltip components) plus a corresponding test. No business logic, security, or runtime behavior is affected. You can customize Macroscope's approvability policy. Learn more. |
Closes #1993
What Changed
Shows the full thread title in a styled tooltip when hovering a sidebar thread name.
This keeps truncated thread labels readable without changing sidebar layout. The PR also adds browser test coverage for the hover tooltip.
Why
Thread titles in the sidebar are visually truncated to fit the available width. When a title is longer than the sidebar row, there is no hover affordance to reveal the full name, which makes it harder to see full thread names, and to distinguish similarly named threads without opening them.
UI Changes
Before:

After:

(When hovering over the thread in the sidebar. Cursor is not visible in the screenshot.)
Checklist
I included a video for animation/interaction changesNote
Low Risk
Low risk UI-only change that wraps sidebar thread titles in an existing tooltip component and adds a browser test; no data, auth, or backend logic is affected.
Overview
Sidebar thread rows now show the full thread title in a tooltip on hover, keeping the row label truncated while improving readability.
Adds a browser regression test in
ChatView.browser.tsxthat hovers the sidebar title (via newdata-testid="thread-title-<id>") and asserts the tooltip popup renders the complete title.Reviewed by Cursor Bugbot for commit cfe3e03. Bugbot is set up for automated code reviews on this repo. Configure here.
Note
Show full thread title in a tooltip when hovering sidebar thread names
Wraps the thread title
spanin Sidebar.tsx with aTooltipcomponent that displays the full title on hover, usingside="top"with wrapping styles. Adata-testid="thread-title-<id>"attribute is added to the trigger element. A browser test in ChatView.browser.tsx verifies the tooltip appears on hover.Macroscope summarized cfe3e03.