Skip to content

feat(web): add shortcut to rename active thread - #7573

Closed
mrmg wants to merge 6 commits into
pingdotgg:mainfrom
mrmg:t3code/add-tab-renaming-shortcut
Closed

mrmg wants to merge 6 commits into
pingdotgg:mainfrom
mrmg:t3code/add-tab-renaming-shortcut

Conversation

@mrmg

@mrmg mrmg commented Aug 19, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Adds a configurable thread.rename command with the default mod+shift+r, exposing the existing inline rename flow for the active thread in both sidebar implementations.

Test plan

  • Focused contracts, server, and web keybinding tests (77 passing)
  • Web typecheck
  • Formatting and diff checks
  • Manual browser screenshot: the controlled local preview timed out while rendering, so no screenshot was attached.

Implemented by GPT-5.6 Luna using Cursor T3 Code.

Made with Cursor

Note

Add mod+shift+r shortcut to rename the active thread in the sidebar

  • Adds thread.rename to the default keybindings and contract-level ThreadKeybindingCommand type, bound to mod+shift+r.
  • Both the main Sidebar.tsx and LegacySidebar.tsx listen for this shortcut and invoke rename on the active thread.
  • If the sidebar is closed, it is opened automatically; if the active thread's project is collapsed, it is expanded; thread search and project scope are reset as needed so the thread is visible before rename starts.
  • Re-triggering the shortcut when rename is already active is a no-op.

Macroscope summarized 8c94a1a.

Expose the existing inline thread rename flow through the default mod+shift+r keybinding in both sidebar implementations.

Co-authored-by: Cursor <cursoragent@cursor.com>
@coderabbitai

coderabbitai Bot commented Aug 19, 2026 •

Copy link
Copy Markdown
Contributor

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: 7968ce37-c637-4663-8e8f-6b45efc35e87

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:unvouched Author is not yet trusted in the VOUCHED list. size:M 30-99 changed lines (additions + deletions). labels Aug 19, 2026
Comment thread apps/web/src/components/Sidebar.tsx Resolved
Comment thread apps/web/src/components/Sidebar.tsx Resolved

@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 changed web UI code for consistency with the existing shortcut/interaction ownership in the sidebars. Two interaction findings on the new thread.rename handlers; no styling or primitive-usage issues in this diff.

Posted via Macroscope — UI Consistency

Comment thread apps/web/src/components/Sidebar.tsx Resolved
@macroscopeapp

macroscopeapp Bot commented Aug 19, 2026 •

Copy link
Copy Markdown
Contributor

Approvability

Verdict: Not approved

Macroscope's review found this PR not approvable — This PR introduces a new keyboard shortcut feature (mod+shift+r) for renaming threads, adding new user-facing behavior with keyboard event handling logic in both Sidebar components. New features warrant human review.

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

Clear sidebar filters before renaming, expand hidden legacy rows, and resolve terminal-aware keybinding context so the shortcut always exposes the inline editor.

Co-authored-by: Cursor <cursoragent@cursor.com>

@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 1 potential issue.

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 d353c44. Configure here.

Comment thread apps/web/src/components/Sidebar.tsx Resolved
Only clear the sidebar project filter when the active thread is outside the selected scope, preserving the user's filter and selection when the rename target is already visible.

Co-authored-by: Cursor <cursoragent@cursor.com>

@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.

Two follow-up findings on the visibility fix: both sidebars now mutate list state unconditionally when the rename shortcut fires, including when the active row is already rendered.

Posted via Macroscope — UI Consistency

Comment thread apps/web/src/components/Sidebar.tsx Resolved
Open collapsed sidebars before focusing the inline editor, avoid unnecessary list expansion, and clear project scope only when the active row is not rendered.

Co-authored-by: Cursor <cursoragent@cursor.com>
@github-actions github-actions Bot added size:L 100-499 changed lines (additions + deletions). and removed size:M 30-99 changed lines (additions + deletions). labels Aug 19, 2026
Share the desktop and mobile sidebar-opening expression in both handlers without changing rename behavior.

Co-authored-by: Cursor <cursoragent@cursor.com>
@github-actions github-actions Bot added size:M 30-99 changed lines (additions + deletions). and removed size:L 100-499 changed lines (additions + deletions). labels Aug 19, 2026
Comment thread apps/web/src/components/Sidebar.tsx Resolved

@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 consistency issue between the two sidebar implementations of the new thread.rename command.

Posted via Macroscope — UI Consistency

Ignore repeated rename shortcuts for the same thread and keep archived LegacySidebar routes from creating invisible rename state.

Co-authored-by: Cursor <cursoragent@cursor.com>
@github-actions github-actions Bot added size:L 100-499 changed lines (additions + deletions). and removed size:M 30-99 changed lines (additions + deletions). labels Aug 19, 2026
@t3dotgg

t3dotgg commented Aug 28, 2026

Copy link
Copy Markdown
Member

Note

🤖 GPT-5.6 Sol responding on behalf of Theo

We're closing this PR as we clean up the T3 Code backlog. Thank you for taking the time to put this together.

This adds a contracts command, server validation, a default Mod+Shift+R binding, and two sidebar entry points only to open the existing rename field. The optional shortcut does not justify another default global chord and six-file keybinding path.

If you believe we closed this in error, please reopen the PR and leave a comment explaining what we missed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:L 100-499 changed lines (additions + deletions). vouch:unvouched Author is not yet trusted in the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants