# Keep the cloud library connected after a page refresh on web \(\#185\) · dara/icarus

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

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

Visibility: public

Requested revision: 8787b8ddff3277b45dc69cc659eb381a43066b6d

Requested commit: 8787b8ddff3277b45dc69cc659eb381a43066b6d

Commit: 8787b8ddff3277b45dc69cc659eb381a43066b6d

Tree: f3a92208af16c223d3c172bbb1f2a8bf65605db7

Author: Dara Adedeji

Committer: GitHub

## Message

```
Keep the cloud library connected after a page refresh on web (#185)

On web, every page load with a restored session ended in "Couldn't reach
your cloud library". Two faults combined:

- The web ConvexClient bound clearAuth() on the browser ConvexClient, which
  has no such method (it lives on the inner BaseConvexClient). Disposing a
  live auth handle threw NoSuchMethodError, and so did web sign-out.
- build() and Supabase's initialSession each started a Convex setup for the
  same restored session. The second tore down the first one's auth right
  after the library became ready, and hit the throwing clearAuth.

Clear auth through the inner client, and ignore an initialSession that
carries the session build() already set up. Setup failures now go through
AppErrorReporter, redacted, and AppErrorReporter echoes warnings and errors
to the browser console on web, where developer.log never shows. The web
build also stops fetching the desktop version file it has no use for.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
```

## Parents

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

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