# fix\(server\): explain fetch failures during worktree preparation · pingdotgg/t3code

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

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

Visibility: public

Requested revision: 7b78854e8f05a55c3956ed661ba885de0303ca01

Requested commit: 7b78854e8f05a55c3956ed661ba885de0303ca01

Commit: 7b78854e8f05a55c3956ed661ba885de0303ca01

Tree: cfcdba7c06c377aa245e2571657d0e2a91fd201e

Author: Julius Marminge

Committer: Julius Marminge

## Message

```
fix(server): explain fetch failures during worktree preparation

Worktree preparation previously exposed only a generic fetch failure. Classify
known authentication, network, repository access, and reference-lock errors
using stable Git diagnostics, without retaining raw output or credentials.
Unknown failures keep the existing generic message.

Cover failure classification and redaction, a real missing local remote, and
propagation into a failed prepared run without creating a worktree or running
setup. The launch test waits for the persisted failure event.

Validation: 38 focused tests, server typecheck, and scoped lint passed.

```

## Parents

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

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