History

Release the self-host data persistence fix as a product patch (#995)

Retarget the changeset from @executor-js/host-selfhost (a private package that publishes nothing and rebuilds no image) at executor, so the release train cuts a product patch, tags it, and republishes the self-host image from main.

Rhys Sullivan committed 5 months ago

Commit 07170671 parent 7735aaf2 files · +5 −17Browse files

Unified · Split

2 files
  1. .changeset/selfhost-restart-data-loss.md +5 −0
  2. .changeset/wal-split-brain-selfhost.md +0 −17
.changeset/selfhost-restart-data-loss.md+5−0
@@ -0,0 +1,5 @@
1---
2"executor": patch
3---
4
5Self-hosted deployments now persist their data correctly across restarts.
.changeset/wal-split-brain-selfhost.md+0−17
@@ -1,17 +0,0 @@
1---
2"@executor-js/host-selfhost": patch
3---
4
5Fix self-hosted data loss on restart. The auth bootstrap built a throwaway
6Better Auth instance to run migrations and seed the org before the
7organization id was known, then discarded it. Its libSQL connection — a
8different native build than the executor's — was garbage-collected mid-boot,
9and that close unlinked the shared SQLite WAL out from under the executor's
10still-open connection. Every executor write (integrations, connections, the
11generated tools) then landed in a deleted WAL file and vanished on the next
12restart, surfacing as a reconnected account whose tools had silently
13disappeared.
14
15The bootstrap now uses a single long-lived auth instance with the
16organization id late-bound, so there is no second connection to be closed
17mid-boot and no split WAL.