# refactor\(desktop\): handle the cookie read failures by tag · pingdotgg/t3code

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

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

Visibility: public

Requested revision: 428d22653021e4a3ca93a40c44a1b6b82cf682cd

Requested commit: 428d22653021e4a3ca93a40c44a1b6b82cf682cd

Commit: 428d22653021e4a3ca93a40c44a1b6b82cf682cd

Tree: 4195fa1f4e125e20cbe4d71c48119fb60b0ed925

Author: Julius Marminge

Committer: Julius Marminge

## Message

```
refactor(desktop): handle the cookie read failures by tag

The union was discriminated with a `cause._tag` ternary inside `Effect.mapError`
even though both members are statically known tagged errors; `Effect.catchTags`
says the same thing without the manual check. The comment above `read` claiming
both carry a `reason` was stale — Firefox's no longer does.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>

```

## Parents

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

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