Skip to content

feat(web): double-click chat header title to rename thread - #7817

Merged
maria-rcks merged 4 commits into
pingdotgg:mainfrom
UtkarshUsername:feat/chat-header-double-click-rename
Aug 21, 2026
Merged

feat(web): double-click chat header title to rename thread#7817
maria-rcks merged 4 commits into
pingdotgg:mainfrom
UtkarshUsername:feat/chat-header-double-click-rename

Conversation

@UtkarshUsername

@UtkarshUsername UtkarshUsername commented Aug 21, 2026

Copy link
Copy Markdown
Contributor

What Changed

Double-clicking the thread title in the chat header now starts renaming, the same way it already does in the sidebar. Right-click > Rename still works, and clicking the chevron next to the title still opens the thread menu instantly.

Why

The sidebar has always offered double-click-to-rename, but the chat header only offered right-click > Rename. This brings the header to parity so renaming works the same way everywhere.

UI Changes

rename.mp4

Checklist

  • This PR is small and focused
  • I explained what changed and why
  • I included a video for animation/interaction changes

Built by ox-alpha (x-preview-f-free) in opencode.


Note

Low Risk
UI interaction-only change in the chat header; no auth, data, or backend behavior is affected. Desktop single-click menu open is delayed by 500ms, which is the main UX risk.

Overview
Double-clicking the thread title in the chat header now starts inline rename, matching the sidebar. Right-click rename still works; the chevron and keyboard activation still open the action menu immediately.

On desktop, a single click on the title waits 500ms before opening the native menu so a double-click can cancel it first (the native menu swallows the second click). Browser fallback menus open immediately. Pending opens are cleared on blur, thread change, unmount, context menu, or rename start.

useThreadActionMenu now exposes closeMenu so rename can dismiss an already-open native menu.

Reviewed by Cursor Bugbot for commit 4969cae. Bugbot is set up for automated code reviews on this repo. Configure here.

Note

Add double-click-to-rename to chat header thread title on desktop

  • Double-clicking the title text in ChatHeader starts a thread rename and cancels any pending menu open. The chevron icon and keyboard activation are excluded from rename and open the menu immediately.
  • On desktop, single-click opens the thread action menu after a 500ms delay (TITLE_MENU_OPEN_DELAY_MS) so a double-click can cancel it. In the browser fallback (no desktopBridge), the menu opens immediately.
  • Adds closeMenu to useThreadActionMenu so the header can programmatically dismiss the native context menu when rename starts.
  • Pending delayed opens are canceled on blur, thread change, unmount, context menu open, or rename start.
  • Behavioral Change: single-clicking the title on desktop now has a 500ms delay before the action menu appears; clicking the chevron avoids this delay.

Macroscope summarized 4969cae.

@coderabbitai

coderabbitai Bot commented Aug 21, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro Plus

Run ID: fe464b2f-5c13-40cc-9663-4849e101bbbb

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@github-actions github-actions Bot added vouch:trusted PR author is trusted by repo permissions or the VOUCHED list. size:M 30-99 changed lines (additions + deletions). labels Aug 21, 2026
Comment thread apps/web/src/components/chat/ChatHeader.tsx Outdated

@cursor cursor Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes using high effort and found 2 potential issues.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 39cb0c2. Configure here.

Comment thread apps/web/src/components/chat/ChatHeader.tsx Outdated
Comment thread apps/web/src/components/chat/ChatHeader.tsx

@macroscopeapp macroscopeapp Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed the thread-title click/double-click arbitration added to ChatHeader. Two findings on the new interaction logic; no styling, primitive, or Tailwind-ownership issues in this diff.

Posted via Macroscope — UI Consistency

Comment thread apps/web/src/components/chat/ChatHeader.tsx Outdated
Comment thread apps/web/src/components/chat/ChatHeader.tsx
@macroscopeapp

macroscopeapp Bot commented Aug 21, 2026

Copy link
Copy Markdown
Contributor

Approvability

Verdict: Not approved

Macroscope's review found this PR not approvable —

You can add or adjust custom eligibility rules. Learn more.

@macroscopeapp macroscopeapp Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One remaining gap in the title-menu arbitration: a pending menu-open survives the user moving on to another control. Details inline.

Posted via Macroscope — UI Consistency

Comment thread apps/web/src/components/chat/ChatHeader.tsx
@UtkarshUsername
UtkarshUsername marked this pull request as draft August 21, 2026 15:30
@UtkarshUsername
UtkarshUsername marked this pull request as ready for review August 21, 2026 18:24
@maria-rcks
maria-rcks merged commit 837f6b8 into pingdotgg:main Aug 21, 2026
22 checks passed
@UtkarshUsername
UtkarshUsername deleted the feat/chat-header-double-click-rename branch August 21, 2026 19:47
github-actions Bot added a commit to omarcresp/t3code-flake that referenced this pull request Aug 21, 2026
## What's Changed
* feat(web): double-click chat header title to rename thread by @UtkarshUsername in pingdotgg/t3code#7817
* fix(web): model picker no longer shows a double border by @RakshithBhat03 in pingdotgg/t3code#7772
* fix(web): give sidebar un-settle button a tooltip by @UtkarshUsername in pingdotgg/t3code#7796
* fix(web): render oversized terminal graphemes without crashing by @Lucenx9 in pingdotgg/t3code#7809


**Full Changelog**: pingdotgg/t3code@v0.0.34-nightly.20260821.1153...v0.0.34-nightly.20260821.1154

Upstream release: https://github.com/pingdotgg/t3code/releases/tag/v0.0.34-nightly.20260821.1154
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:M 30-99 changed lines (additions + deletions). vouch:trusted PR author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants