diff options
| author | Dax Raad <[email protected]> | 2026-04-09 21:34:52 -0400 |
|---|---|---|
| committer | Dax Raad <[email protected]> | 2026-04-09 21:34:52 -0400 |
| commit | 04074d3f4a62e039e11ff73e73b1a2be6f651439 (patch) | |
| tree | 7f2c64a7736dfb0dfb4dc49d669a8b6fd0ba192e | |
| parent | eac50f9151be808c06a36612a69a0e4522988cdd (diff) | |
| download | opencode-04074d3f4a62e039e11ff73e73b1a2be6f651439.tar.gz opencode-04074d3f4a62e039e11ff73e73b1a2be6f651439.zip | |
core: enable prod channel to use shared production database
Ensures users on the prod channel have their data persisted to the same
database as latest and beta channels, preventing data fragmentation
across different release channels.
| -rw-r--r-- | packages/opencode/src/storage/db.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/opencode/src/storage/db.ts b/packages/opencode/src/storage/db.ts index 4cb0dbc3e..78320ac0a 100644 --- a/packages/opencode/src/storage/db.ts +++ b/packages/opencode/src/storage/db.ts @@ -29,7 +29,7 @@ const log = Log.create({ service: "db" }) export namespace Database { export function getChannelPath() { - if (["latest", "beta"].includes(CHANNEL) || Flag.OPENCODE_DISABLE_CHANNEL_DB) + if (["latest", "beta", "prod"].includes(CHANNEL) || Flag.OPENCODE_DISABLE_CHANNEL_DB) return path.join(Global.Path.data, "opencode.db") const safe = CHANNEL.replace(/[^a-zA-Z0-9._-]/g, "-") return path.join(Global.Path.data, `opencode-${safe}.db`) |
