The best way to control Claude Code, Codex and more from any computer or phone
Mirrored from https://github.com/Camo67/t3code.git
Synced Nov 22, 00:45 UTC
feat(web): bindable shortcut to regenerate a thread's title (#33987)
Co-authored-by: Sharan Yalburgi <sharan@Sharans-MacBook-Pro.local> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Sharan Yalburgi committed
Nov 10, 2026 at 17:32 UTC
cfb7cae2b9ede198fed1c26398199dd4bd27ae65
3 files changed
+13
apps/web/src/components/chat/useThreadLifecycle.tsx
+9
@@ -682,6 +682,15 @@ export function useThreadLifecycle(input: ThreadLifecycleInput) {
682
),
683
);
684
},
685
+ "thread.regenerateTitle": () => {
686
+ if (!readEnvironmentScope(environmentId, AuthOrchestrationOperateScope)) return false;
687
+ if (!activeThreadShell || !activeThreadRef || !serverConfigLoaded) return;
688
+ if (activeThreadShell.titleRegeneration != null) return;
689
+ void updateThreadMetadata({
690
+ environmentId: activeThreadRef.environmentId,
691
+ input: { threadId: activeThreadRef.threadId, regenerateTitle: true },
692
+ }).then(toastThreadActionFailure("Failed to regenerate thread title"));
693
+ },
694
} satisfies ChatShortcutCommands;
695
return {
696
shortcuts,
docs/user/keybindings.md
+3
@@ -164,6 +164,9 @@ a shortcut.
164
`thread.stop` interrupts the running turn in the focused thread. It has no default
165
shortcut; assign one in **Settings → Keybindings**.
166
167
+`thread.regenerateTitle` generates a new title for the focused thread, like
168
+**Regenerate title** in the thread menu. It has no default shortcut.
169
+
170
`thread.undo` (`mod+z` by default) reverses the actions shown in the notice at the
171
bottom of the sidebar, such as unpin, settle, snooze, archive, or discarding a
172
draft. Consecutive
packages/contracts/src/keybindings.ts
+1
@@ -43,6 +43,7 @@ const THREAD_KEYBINDING_COMMANDS = [
43
"thread.copyReference",
44
"thread.settle",
45
"thread.pin",
46
+ "thread.regenerateTitle",
47
"thread.undo",
48
...THREAD_JUMP_KEYBINDING_COMMANDS,
49
] as const;