# fix\(server\): translate policy capability rejections into readable errors · stienswout/t3code

[View on GitCafe](https://git.cafe/stienswout/t3code/commit/f0c70b6f6e4be4e935d89c8734ca422fa26c9f90)

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

Visibility: public

Requested revision: f0c70b6f6e4be4e935d89c8734ca422fa26c9f90

Requested commit: f0c70b6f6e4be4e935d89c8734ca422fa26c9f90

Commit: f0c70b6f6e4be4e935d89c8734ca422fa26c9f90

Tree: 9eca66ffb1efe0f5067bec9282b4537ec507f3ca

Author: Wout Stiens

Committer: Wout Stiens

## Message

```
fix(server): translate policy capability rejections into readable errors

Capability rejections surfaced their internal diagnostic string, so a
checkpoint revert on a provider without rollback support showed 'pi
cannot satisfy rollback_snapshot for command <uuid>: rollback must
return a providerInstanceId thread snapshot'. userFacingDispatchErrorMessage
now renders known policy rejections as provider-named prose ('Pi did not
report its rewound conversation state, so the checkpoint was not
restored.') and keeps the diagnostic form for logs and unknown codes.

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

```

## Parents

- [244f2291d18c3e12f4bb9b14b68c1d7b9b238819](https://git.cafe/stienswout/t3code/commit/244f2291d18c3e12f4bb9b14b68c1d7b9b238819?format=markdown)

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