# Open the local library even when the cloud fails to start · dara/icarus

[View on GitCafe](https://git.cafe/dara/icarus/commit/15283c00577d948b1050a7c5d1822cbe3d6ef2b1)

Repository: [dara/icarus](https://git.cafe/dara/icarus)

Visibility: public

Requested revision: 15283c00577d948b1050a7c5d1822cbe3d6ef2b1

Requested commit: 15283c00577d948b1050a7c5d1822cbe3d6ef2b1

Commit: 15283c00577d948b1050a7c5d1822cbe3d6ef2b1

Tree: 432941c027b6b75dd8fae79df4efc6a67686b75d

Author: Dara Adedeji

Committer: Dara Adedeji

## Message

```
Open the local library even when the cloud fails to start

Cloud bootstrap ran inline before runApp: a throwing outbox open, outbox
prepare, Convex init or Supabase init left the app unshown, so a signed-out
desktop user could not reach a healthy local library. startCloud now runs
those steps, never throws, and on the first failure leaves the cloud off for
the run: auth sees no session and every sign-in answers with the reason, the
outbox stores read and write nothing, and a toast says so once the app is up.
The release-build check for ICARUS_CLOUD_ENVIRONMENT still stops startup.

The outbox boxes now open with Hive's crash recovery off. Recovery truncates
a box at its first bad frame, silently deleting the unsent work after it; a
corrupt outbox now stays on disk byte for byte and the cloud stays off.

A signed-out startup also no longer clears Convex auth it never set, which
opened the Convex socket for users who never asked for the cloud.

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

```

## Parents

- [65f978afef8d5f6d6ee4dbc622944f772e222e9c](https://git.cafe/dara/icarus/commit/65f978afef8d5f6d6ee4dbc622944f772e222e9c?format=markdown)

[Source at this commit](https://git.cafe/dara/icarus/tree/15283c00577d948b1050a7c5d1822cbe3d6ef2b1?format=markdown)
