# fix\(mobile\): bind a new-task draft whenever a project is in view · pingdotgg/t3code

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

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

Visibility: public

Requested revision: c1157a308da82eaa9fef9f54c7457a9df186db89

Requested commit: c1157a308da82eaa9fef9f54c7457a9df186db89

Commit: c1157a308da82eaa9fef9f54c7457a9df186db89

Tree: bc3c43712284eec3fb532bfd0cc04d18051d11ce

Author: Julius Marminge

Committer: Julius Marminge

## Message

```
fix(mobile): bind a new-task draft whenever a project is in view

The provider resolves selectedProject to the environment's first project
before setProject ever runs, and the draft screen skips setProject when
the route's project already matches. Text typed in that window had no
draft to land in and was lost on cancel. Mint the draft from an effect
keyed on the selected project instead of only inside setProject.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

```

## Parents

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

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