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

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

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

Visibility: public

Requested revision: 8905dacfdbbab8e654e3a2c45549b9fb7d98dbda

Requested commit: 8905dacfdbbab8e654e3a2c45549b9fb7d98dbda

Commit: 8905dacfdbbab8e654e3a2c45549b9fb7d98dbda

Tree: fd6b0b0030e591cb430620c98593026efa31b89e

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

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

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