# fix\(web\): a draft closed mid machine switch no longer rewrites that draft · pingdotgg/t3code

[View on GitCafe](https://git.cafe/pingdotgg/t3code/commit/3f4ca0f13d41168caa3b9298296b88de3cba228e)

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

Visibility: public

Requested revision: 3f4ca0f13d41168caa3b9298296b88de3cba228e

Requested commit: 3f4ca0f13d41168caa3b9298296b88de3cba228e

Commit: 3f4ca0f13d41168caa3b9298296b88de3cba228e

Tree: 6988996c3fbefdca39b4acd14759dc542bf1dfea

Author: Julius Marminge

Committer: Julius Marminge

## Message

```
fix(web): a draft closed mid machine switch no longer rewrites that draft

Since #20418 dropped the effect cleanup, a draft view that unmounted while
openScratchProject was pending kept its request alive, so the completion
still retargeted the draft's machine and project. A layout-effect cleanup
keyed on the draft/project scope now abandons the in-flight request.

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

```

## Parents

- [f5cb328aac19302a45a3fe9f7e6864a198cdb1ad](https://git.cafe/pingdotgg/t3code/commit/f5cb328aac19302a45a3fe9f7e6864a198cdb1ad?format=markdown)

[Source at this commit](https://git.cafe/pingdotgg/t3code/tree/3f4ca0f13d41168caa3b9298296b88de3cba228e?format=markdown)
