# Guard all commitRename cleanup paths against concurrent renames · gitcafe/t3code

[View on GitCafe](https://git.cafe/gitcafe/t3code/commit/5a0006f7efabb03888573a2029f1d0a30b614422)

Repository: [gitcafe/t3code](https://git.cafe/gitcafe/t3code)

Visibility: public

Requested revision: 5a0006f7efabb03888573a2029f1d0a30b614422

Requested commit: 5a0006f7efabb03888573a2029f1d0a30b614422

Commit: 5a0006f7efabb03888573a2029f1d0a30b614422

Tree: 947a9272a5f496322a85edb6b0b55118bb38ef9b

Author: Julius Marminge

Committer: Julius Marminge

## Message

```
Guard all commitRename cleanup paths against concurrent renames

All exit paths in commitRename now use a thread-guarded finishRename
helper that only clears renamingThreadId when it still matches the
original threadId. Prevents a stale onBlur from cancelling a newly
started rename on a different thread.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

```

## Parents

- [9e2e73c070710bfcb132cfff3ca1eb7b03996dd7](https://git.cafe/gitcafe/t3code/commit/9e2e73c070710bfcb132cfff3ca1eb7b03996dd7?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/t3code/tree/5a0006f7efabb03888573a2029f1d0a30b614422?format=markdown)
