@devries-cameron20 / t3code-1 / commits / c530e5d50f
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

Guard commitRename cleanup against concurrent renames

After the async dispatch, only clear renamingThreadId if it still matches the thread being renamed, preventing a second rename's input from being cleared by the first's completion. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

Julius Marminge committed Mar 2, 2026 at 13:32 UTC c530e5d50f5a77cd732c0c3e09d9ef964faea96e
1 file changed +5 -1
apps/web/src/components/Sidebar.tsx
+5 -1
@@ -543,7 +543,11 @@ export default function Sidebar() {
543 description: error instanceof Error ? error.message : "An error occurred.",
544 });
545 }
546 - cancelRename();
546 + setRenamingThreadId((current) => {
547 + if (current !== threadId) return current;
548 + renamingInputRef.current = null;
549 + return null;
550 + });
551 },
552 [cancelRename],
553 );