Repository navigation
Conversation
Renaming the active thread from the chat header needed a mouse: a double-click on the title or the title menu. There was no command to reach it from the keyboard or the command palette. Add a `thread.rename` keybinding command that starts the existing inline header rename. It ships without a default shortcut; users bind it in Settings -> Keybindings or keybindings.json. ChatView and the command palette send a rename request for a specific thread over a small window-event bus, and ChatHeader starts its existing rename only for requests that target its thread. One availability rule decides every entry point: a server thread the user can operate, with the header visible (a maximized right panel hides it). The shortcut, the palette action and the palette shortcut use it, and ChatHeader ignores requests while it is false. The shortcut leaves the key alone when unavailable or during IME composition, and ignores auto-repeat. The palette restores focus to the composer as it finishes closing, which would blur the new rename field at once. Its "Rename thread" action and shortcut therefore defer the request and the palette sends it right after that focus restore. Reopening the palette or navigating away from the thread drops a pending request. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ApprovabilityVerdict: Not approved Macroscope's review found this PR not approvable — This PR adds a new user-facing rename workflow through the command palette and a bindable keybinding, with cross-component focus and event coordination beyond the existing rename UI. The keybinding is unbound and backward-compatible, but the default-visible palette capability makes this a feature addition that merits human review. You can add or adjust custom eligibility rules. Learn more. |
|
Note Written by Thanks for adding keyboard access to thread renaming. The existing header and menu actions work; this PR adds a bindable command and palette entry. Right now we are only taking focused bug fixes from outside contributors under Read this first, even though the guide allows some configuration options. Please keep the proposal in the linked Ideas discussions and request reconsideration if maintainers choose to take on this scope. |
Problem
Renaming the open thread needs the mouse: double-click the header title, or open the title menu and pick Rename. There is no keybinding command or command palette entry for it, so keyboard-driven users can't rename without leaving the keyboard. Requested in #6772 and as item 2 of #6817.
Change
thread.renamekeybinding command. It ships unbound:DEFAULT_KEYBINDINGSis untouched, so no existing shortcut changes. Earlier attempts were closed over default chords (mod+shift+rcollides with desktop Force Reload). Users bind it in Settings → Keybindings orkeybindings.json, where it appears as "Thread: Rename".chat.findandthread.copyReferencework.ChatHeader. Enter saves, Escape cancels, and blur saves, all unchanged. ChatView and the palette send a rename request for a specific thread over a small window-event bus (threadRenameActionBus.ts, same pattern asthreadFindActionBus.ts).ChatHeaderonly acts on requests for its own thread.canStartThreadRename) covers every entry point: a server-backed thread the user can operate, with the header title visible. A maximized right panel hides the title, except in the narrow layout. When the rule fails, the shortcut leaves the key alone. It also ignores auto-repeat and IME composition.finalFocuscallback, right after that refocus. Every other palette close keeps today's focus behaviour. Reopening the palette, or navigating away from the target thread, drops the parked request.Not changed: desktop, whose Electron menu accelerators are fixed and which inherits the web behaviour; mobile, which already has rename as a thread list action; server, providers and MCP (
t3_thread_update action=renamealready exists).Scope and approval
Requested in Ideas #6772 and #6817 (item 2). I couldn't find an explicit maintainer approval comment on either. I believe this is a focused configuration of an established capability: thread rename already exists in the header and menus, and this only exposes it as a bindable command plus a palette entry. Because it ships without a default binding, nothing changes for anyone who doesn't opt in. Closed attempts #6454, #7573 and #15573 added default chords; #11430 was unbound and closed only for missing a recording, which is included below.
Verification
Focused tests:
apps/web:vp test run src/components/chat/threadRenameActionBus.test.ts src/keybindings.test.ts src/components/settings/KeybindingsSettings.logic.test.ts→ 178 passed. New cases cover:packages/contracts:vp test run src/keybindings.test.ts→ 11 passed.vp run typecheckinapps/webandpackages/contracts;vp lintandvp fmton touched files.Manual end-to-end in a real browser against a dev server with seeded real data:
F2, setwhento!terminalFocus && !editableFocus, and saved.F2. Pressing Enter closed the palette, and the title input kept focus with the title selected; it did not jump to the composer. Typed a name and pressed Enter: it saved.whenclause requires.Recording (sped up, idle time removed):
MP4: compact · full-length original
main): no rename action in the paletteAfter: "Thread: Rename" is listed in Settings → Keybindings → Add keybinding.

Not checked:
main. The rebase only resolved a conflict with the new "Copy prompt link" palette actions. Afterwards I reran the focused tests and repeated the F2 and palette checks live.Implemented with Claude Opus 5.5 in Claude Code (running inside T3 Code); code and architecture review by GPT-6.1 Sol.
🤖 Generated with Claude Code