Skip to content

account_state table schema mismatch after upgrade — missing active_account_id column causes startup crash #30953

Closed as not planned

Description

@Cateds

Description

Upgraded desktop app to 0.16.0 (also repros with OpenCode Beta). On startup, the app crashes with repeated errors and retries in a loop. Two errors alternate depending on which code path executes first:
Error 1: no such column: "active_account_id" — AccountRepo.active() queries account_state selecting the active_account_id column that doesn't exist in the actual table.

ERROR service=server error=no such column: "active_account_id"
    at AccountRepo.active (...)
    at Config.loadInstanceState (...)
    at InstanceStore.boot (...) failed

Error 2: no such table: account — AccountRepo.list() / Account.orgsByAccount() queries the account table which doesn't exist.

ERROR service=server error=no such table: account cause=SQLiteError
    at AccountRepo.list (...)
    at Account.orgsByAccount (...)

The actual account_state table has an old schema from a pre-migration version:

-- Actual (stale):
CREATE TABLE `account_state` (
  `id` text PRIMARY KEY,
  `account_email` text NOT NULL,
  `account_provider` text NOT NULL,
  `data` text NOT NULL,
  `time_created` integer NOT NULL,
  `time_updated` integer NOT NULL
);

-- Expected (current code):
-- id INTEGER, active_account_id TEXT, active_org_id TEXT
-- FK REFERENCES account(id)

The account table does not exist. Yet migration 20260228203230_blue_harpoon is marked completed in the migration journal — it was seeded from the legacy __drizzle_migrations table (applied 2026-03-13), so the custom migration engine skips it without executing the SQL.
Root cause chain:

  1. The blue_harpoon migration (which does CREATE TABLE account + CREATE TABLE account_state) was consolidated from two prior migrations (shocking_namor + account_id) in commit a44f78c.
  2. Older installs have account_state with stale columns — likely created via early drizzle push before the formal migration system.
  3. packages/core/src/database/migration.ts:29-44 seeds the new migration journal from __drizzle_migrations, trusting all entries as completed without verifying schema integrity.
  4. blue_harpoon itself uses bare CREATE TABLE (no IF NOT EXISTS) — even if re-run it would fail on pre-existing tables.
    Related: Failed to run the query 'CREATE TABLE account #17270 (same root cause, different symptom — account table already exists).

Plugins

@cateds/opencode-pty

OpenCode version

1.16.0

Steps to reproduce

  1. Install an older version of opencode that creates account_state with columns (id, account_email, account_provider, data, time_created, time_updated) — e.g., via early drizzle push before the custom migration system.
  2. Upgrade desktop app to 0.16.0.
  3. Launch — app loops on active_account_id error.

Screenshot and/or share link

Image

Operating System

MacOS 26.4

Terminal

cmux (ghostty)

Activity

  1. Cateds commented on Jun 5, 2026

    @Cateds
    Author

    The log file is:

    2026-06-05T123437.log
    ERROR 2026-06-05T12:34:38 +987ms service=server ref=err_2a636f23 error=no such column: "active_account_id" - should this be a string literal in single-quotes? cause=Error: no such column: "active_account_id" - should this be a string literal in single-quotes?
        at AccountRepo.active (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:176591:77)
        at AccountRepo.active (definition) (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:79407:35)
        at Config.loadInstanceState (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:176690:21)
        at Config.loadInstanceState (definition) (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:176502:46)
        at Config.state (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:68545:21)
        at Config.state (definition) (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:176689:71)
        at Config.get (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:347232:23)
        at Config.get (definition) (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:176692:35)
        at InstanceBootstrap (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:347235:28)
        at InstanceStore.boot (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:346496:28) failed
    ERROR 2026-06-05T12:34:38 +0ms service=server ref=err_9d766080 error=no such column: "active_account_id" - should this be a string literal in single-quotes? cause=Error: no such column: "active_account_id" - should this be a string literal in single-quotes?
        at AccountRepo.active (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:176591:77)
        at AccountRepo.active (definition) (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:79407:35)
        at Config.loadInstanceState (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:176690:21)
        at Config.loadInstanceState (definition) (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:176502:46)
        at Config.state (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:68545:21)
        at Config.state (definition) (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:176689:71)
        at Config.get (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:347232:23)
        at Config.get (definition) (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:176692:35)
        at InstanceBootstrap (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:347235:28)
        at InstanceStore.boot (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:346496:28) failed
    ERROR 2026-06-05T12:34:38 +1ms service=server ref=err_ab9aeadc error=no such column: "active_account_id" - should this be a string literal in single-quotes? cause=Error: no such column: "active_account_id" - should this be a string literal in single-quotes?
        at AccountRepo.active (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:176591:77)
        at AccountRepo.active (definition) (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:79407:35)
        at Config.loadInstanceState (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:176690:21)
        at Config.loadInstanceState (definition) (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:176502:46)
        at Config.state (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:68545:21)
        at Config.state (definition) (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:176689:71)
        at Config.get (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:347232:23)
        at Config.get (definition) (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:176692:35)
        at InstanceBootstrap (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:347235:28)
        at InstanceStore.boot (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:346496:28) failed
    ERROR 2026-06-05T12:34:38 +157ms service=server ref=err_724d943e error=no such column: "active_account_id" - should this be a string literal in single-quotes? cause=Error: no such column: "active_account_id" - should this be a string literal in single-quotes?
        at AccountRepo.active (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:176591:77)
        at AccountRepo.active (definition) (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:79407:35)
        at Config.loadInstanceState (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:176690:21)
        at Config.loadInstanceState (definition) (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:176502:46)
        at Config.state (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:68545:21)
        at Config.state (definition) (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:176689:71)
        at Config.get (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:347232:23)
        at Config.get (definition) (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:176692:35)
        at InstanceBootstrap (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:347235:28)
        at InstanceStore.boot (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:346496:28) failed
    ERROR 2026-06-05T12:34:38 +0ms service=server ref=err_b2bef530 error=no such column: "active_account_id" - should this be a string literal in single-quotes? cause=Error: no such column: "active_account_id" - should this be a string literal in single-quotes?
        at AccountRepo.active (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:176591:77)
        at AccountRepo.active (definition) (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:79407:35)
        at Config.loadInstanceState (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:176690:21)
        at Config.loadInstanceState (definition) (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:176502:46)
        at Config.state (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:68545:21)
        at Config.state (definition) (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:176689:71)
        at Config.get (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:347232:23)
        at Config.get (definition) (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:176692:35)
        at InstanceBootstrap (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:347235:28)
        at InstanceStore.boot (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:346496:28) failed
    ERROR 2026-06-05T12:34:38 +0ms service=server ref=err_06d76230 error=no such column: "active_account_id" - should this be a string literal in single-quotes? cause=Error: no such column: "active_account_id" - should this be a string literal in single-quotes?
        at AccountRepo.active (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:176591:77)
        at AccountRepo.active (definition) (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:79407:35)
        at Config.loadInstanceState (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:176690:21)
        at Config.loadInstanceState (definition) (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:176502:46)
        at Config.state (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:68545:21)
        at Config.state (definition) (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:176689:71)
        at Config.get (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:347232:23)
        at Config.get (definition) (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:176692:35)
        at InstanceBootstrap (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:347235:28)
        at InstanceStore.boot (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:346496:28) failed
    ERROR 2026-06-05T12:34:38 +0ms service=server ref=err_c9359842 error=no such column: "active_account_id" - should this be a string literal in single-quotes? cause=Error: no such column: "active_account_id" - should this be a string literal in single-quotes?
        at AccountRepo.active (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:176591:77)
        at AccountRepo.active (definition) (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:79407:35)
        at Config.loadInstanceState (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:176690:21)
        at Config.loadInstanceState (definition) (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:176502:46)
        at Config.state (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:68545:21)
        at Config.state (definition) (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:176689:71)
        at Config.get (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:347232:23)
        at Config.get (definition) (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:176692:35)
        at InstanceBootstrap (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:347235:28)
        at InstanceStore.boot (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:346496:28) failed
    ERROR 2026-06-05T12:34:38 +0ms service=server ref=err_f19464e4 error=no such column: "active_account_id" - should this be a string literal in single-quotes? cause=Error: no such column: "active_account_id" - should this be a string literal in single-quotes?
        at AccountRepo.active (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:176591:77)
        at AccountRepo.active (definition) (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:79407:35)
        at Config.loadInstanceState (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:176690:21)
        at Config.loadInstanceState (definition) (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:176502:46)
        at Config.state (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:68545:21)
        at Config.state (definition) (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:176689:71)
        at Config.get (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:347232:23)
        at Config.get (definition) (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:176692:35)
        at InstanceBootstrap (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:347235:28)
        at InstanceStore.boot (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:346496:28) failed
    ERROR 2026-06-05T12:34:39 +50ms service=server ref=err_cc90a215 error=no such column: "active_account_id" - should this be a string literal in single-quotes? cause=Error: no such column: "active_account_id" - should this be a string literal in single-quotes?
        at AccountRepo.active (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:176591:77)
        at AccountRepo.active (definition) (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:79407:35)
        at Config.loadInstanceState (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:176690:21)
        at Config.loadInstanceState (definition) (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:176502:46)
        at Config.state (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:68545:21)
        at Config.state (definition) (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:176689:71)
        at Config.get (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:347232:23)
        at Config.get (definition) (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:176692:35)
        at InstanceBootstrap (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:347235:28)
        at InstanceStore.boot (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:346496:28) failed
    ERROR 2026-06-05T12:34:39 +0ms service=server ref=err_4e64bf15 error=no such column: "active_account_id" - should this be a string literal in single-quotes? cause=Error: no such column: "active_account_id" - should this be a string literal in single-quotes?
        at AccountRepo.active (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:176591:77)
        at AccountRepo.active (definition) (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:79407:35)
        at Config.loadInstanceState (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:176690:21)
        at Config.loadInstanceState (definition) (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:176502:46)
        at Config.state (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:68545:21)
        at Config.state (definition) (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:176689:71)
        at Config.get (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:347232:23)
        at Config.get (definition) (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:176692:35)
        at InstanceBootstrap (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:347235:28)
        at InstanceStore.boot (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:346496:28) failed
    ERROR 2026-06-05T12:34:39 +0ms service=server ref=err_95937c4f error=no such column: "active_account_id" - should this be a string literal in single-quotes? cause=Error: no such column: "active_account_id" - should this be a string literal in single-quotes?
        at AccountRepo.active (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:176591:77)
        at AccountRepo.active (definition) (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:79407:35)
        at Config.loadInstanceState (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:176690:21)
        at Config.loadInstanceState (definition) (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:176502:46)
        at Config.state (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:68545:21)
        at Config.state (definition) (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:176689:71)
        at Config.get (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:347232:23)
        at Config.get (definition) (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:176692:35)
        at InstanceBootstrap (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:347235:28)
        at InstanceStore.boot (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:346496:28) failed
    ERROR 2026-06-05T12:34:39 +0ms service=server ref=err_ba9bcb05 error=no such column: "active_account_id" - should this be a string literal in single-quotes? cause=Error: no such column: "active_account_id" - should this be a string literal in single-quotes?
        at AccountRepo.active (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:176591:77)
        at AccountRepo.active (definition) (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:79407:35)
        at Config.loadInstanceState (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:176690:21)
        at Config.loadInstanceState (definition) (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:176502:46)
        at Config.state (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:68545:21)
        at Config.state (definition) (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:176689:71)
        at Config.get (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:347232:23)
        at Config.get (definition) (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:176692:35)
        at InstanceBootstrap (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:347235:28)
        at InstanceStore.boot (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:346496:28) failed
    ERROR 2026-06-05T12:34:39 +0ms service=server ref=err_42fb5b72 error=no such column: "active_account_id" - should this be a string literal in single-quotes? cause=Error: no such column: "active_account_id" - should this be a string literal in single-quotes?
        at AccountRepo.active (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:176591:77)
        at AccountRepo.active (definition) (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:79407:35)
        at Config.loadInstanceState (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:176690:21)
        at Config.loadInstanceState (definition) (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:176502:46)
        at Config.state (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:68545:21)
        at Config.state (definition) (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:176689:71)
        at Config.get (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:347232:23)
        at Config.get (definition) (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:176692:35)
        at InstanceBootstrap (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:347235:28)
        at InstanceStore.boot (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:346496:28) failed
    ERROR 2026-06-05T12:34:39 +98ms service=server ref=err_80641961 error=no such column: "active_account_id" - should this be a string literal in single-quotes? cause=Error: no such column: "active_account_id" - should this be a string literal in single-quotes?
        at AccountRepo.active (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:176591:77)
        at AccountRepo.active (definition) (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:79407:35)
        at Config.loadInstanceState (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:176690:21)
        at Config.loadInstanceState (definition) (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:176502:46)
        at Config.state (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:68545:21)
        at Config.state (definition) (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:176689:71)
        at Config.get (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:347232:23)
        at Config.get (definition) (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:176692:35)
        at InstanceBootstrap (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:347235:28)
        at InstanceStore.boot (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:346496:28) failed
    ERROR 2026-06-05T12:34:39 +1ms service=server ref=err_ebbbbb29 error=no such column: "active_account_id" - should this be a string literal in single-quotes? cause=Error: no such column: "active_account_id" - should this be a string literal in single-quotes?
        at AccountRepo.active (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:176591:77)
        at AccountRepo.active (definition) (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:79407:35)
        at Config.loadInstanceState (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:176690:21)
        at Config.loadInstanceState (definition) (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:176502:46)
        at Config.state (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:68545:21)
        at Config.state (definition) (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:176689:71)
        at Config.get (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:347232:23)
        at Config.get (definition) (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:176692:35)
        at InstanceBootstrap (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:347235:28)
        at InstanceStore.boot (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:346496:28) failed
    ERROR 2026-06-05T12:34:40 +1151ms service=server ref=err_bc45580c error=no such column: "active_account_id" - should this be a string literal in single-quotes? cause=Error: no such column: "active_account_id" - should this be a string literal in single-quotes?
        at AccountRepo.active (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:176591:77)
        at AccountRepo.active (definition) (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:79407:35)
        at Config.loadInstanceState (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:176690:21)
        at Config.loadInstanceState (definition) (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:176502:46)
        at Config.state (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:68545:21)
        at Config.state (definition) (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:176689:71)
        at Config.get (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:347232:23)
        at Config.get (definition) (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:176692:35)
        at InstanceBootstrap (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:347235:28)
        at InstanceStore.boot (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:346496:28) failed
    ERROR 2026-06-05T12:34:40 +5ms service=server ref=err_553849cb error=no such column: "active_account_id" - should this be a string literal in single-quotes? cause=Error: no such column: "active_account_id" - should this be a string literal in single-quotes?
        at AccountRepo.active (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:176591:77)
        at AccountRepo.active (definition) (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:79407:35)
        at Config.loadInstanceState (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:176690:21)
        at Config.loadInstanceState (definition) (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:176502:46)
        at Config.state (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:68545:21)
        at Config.state (definition) (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:176689:71)
        at Config.get (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:347232:23)
        at Config.get (definition) (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:176692:35)
        at InstanceBootstrap (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:347235:28)
        at InstanceStore.boot (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:346496:28) failed
    ERROR 2026-06-05T12:34:40 +71ms service=server ref=err_6cc4fe54 error=no such column: "active_account_id" - should this be a string literal in single-quotes? cause=Error: no such column: "active_account_id" - should this be a string literal in single-quotes?
        at AccountRepo.active (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:176591:77)
        at AccountRepo.active (definition) (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:79407:35)
        at Config.loadInstanceState (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:176690:21)
        at Config.loadInstanceState (definition) (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:176502:46)
        at Config.state (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:68545:21)
        at Config.state (definition) (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:176689:71)
        at Config.get (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:347232:23)
        at Config.get (definition) (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:176692:35)
        at InstanceBootstrap (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:347235:28)
        at InstanceStore.boot (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:346496:28) failed
    ERROR 2026-06-05T12:34:40 +1ms service=server ref=err_70560ca4 error=no such column: "active_account_id" - should this be a string literal in single-quotes? cause=Error: no such column: "active_account_id" - should this be a string literal in single-quotes?
        at AccountRepo.active (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:176591:77)
        at AccountRepo.active (definition) (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:79407:35)
        at Config.loadInstanceState (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:176690:21)
        at Config.loadInstanceState (definition) (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:176502:46)
        at Config.state (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:68545:21)
        at Config.state (definition) (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:176689:71)
        at Config.get (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:347232:23)
        at Config.get (definition) (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:176692:35)
        at InstanceBootstrap (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:347235:28)
        at InstanceStore.boot (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:346496:28) failed
    ERROR 2026-06-05T12:34:40 +0ms service=server ref=err_784c59c2 error=no such column: "active_account_id" - should this be a string literal in single-quotes? cause=Error: no such column: "active_account_id" - should this be a string literal in single-quotes?
        at AccountRepo.active (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:176591:77)
        at AccountRepo.active (definition) (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:79407:35)
        at Config.loadInstanceState (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:176690:21)
        at Config.loadInstanceState (definition) (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:176502:46)
        at Config.state (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:68545:21)
        at Config.state (definition) (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:176689:71)
        at Config.get (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:347232:23)
        at Config.get (definition) (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:176692:35)
        at InstanceBootstrap (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:347235:28)
        at InstanceStore.boot (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:346496:28) failed
    ERROR 2026-06-05T12:34:42 +1942ms service=server ref=err_2facd745 error=no such column: "active_account_id" - should this be a string literal in single-quotes? cause=Error: no such column: "active_account_id" - should this be a string literal in single-quotes?
        at AccountRepo.active (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:176591:77)
        at AccountRepo.active (definition) (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:79407:35)
        at Config.loadInstanceState (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:176690:21)
        at Config.loadInstanceState (definition) (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:176502:46)
        at Config.state (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:68545:21)
        at Config.state (definition) (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:176689:71)
        at Config.get (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:347232:23)
        at Config.get (definition) (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:176692:35)
        at InstanceBootstrap (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:347235:28)
        at InstanceStore.boot (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:346496:28) failed
    ERROR 2026-06-05T12:34:42 +3ms service=server ref=err_97febc0a error=no such column: "active_account_id" - should this be a string literal in single-quotes? cause=Error: no such column: "active_account_id" - should this be a string literal in single-quotes?
        at AccountRepo.active (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:176591:77)
        at AccountRepo.active (definition) (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:79407:35)
        at Config.loadInstanceState (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:176690:21)
        at Config.loadInstanceState (definition) (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:176502:46)
        at Config.state (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:68545:21)
        at Config.state (definition) (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:176689:71)
        at Config.get (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:347232:23)
        at Config.get (definition) (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:176692:35)
        at InstanceBootstrap (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:347235:28)
        at InstanceStore.boot (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:346496:28) failed
    ERROR 2026-06-05T12:34:42 +140ms service=server ref=err_272db114 error=no such column: "active_account_id" - should this be a string literal in single-quotes? cause=Error: no such column: "active_account_id" - should this be a string literal in single-quotes?
        at AccountRepo.active (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:176591:77)
        at AccountRepo.active (definition) (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:79407:35)
        at Config.loadInstanceState (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:176690:21)
        at Config.loadInstanceState (definition) (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:176502:46)
        at Config.state (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:68545:21)
        at Config.state (definition) (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:176689:71)
        at Config.get (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:347232:23)
        at Config.get (definition) (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:176692:35)
        at InstanceBootstrap (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:347235:28)
        at InstanceStore.boot (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:346496:28) failed
    ERROR 2026-06-05T12:34:42 +0ms service=server ref=err_fcddb2d1 error=no such column: "active_account_id" - should this be a string literal in single-quotes? cause=Error: no such column: "active_account_id" - should this be a string literal in single-quotes?
        at AccountRepo.active (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:176591:77)
        at AccountRepo.active (definition) (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:79407:35)
        at Config.loadInstanceState (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:176690:21)
        at Config.loadInstanceState (definition) (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:176502:46)
        at Config.state (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:68545:21)
        at Config.state (definition) (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:176689:71)
        at Config.get (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:347232:23)
        at Config.get (definition) (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:176692:35)
        at InstanceBootstrap (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:347235:28)
        at InstanceStore.boot (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:346496:28) failed
    ERROR 2026-06-05T12:34:42 +0ms service=server ref=err_d83dc5eb error=no such column: "active_account_id" - should this be a string literal in single-quotes? cause=Error: no such column: "active_account_id" - should this be a string literal in single-quotes?
        at AccountRepo.active (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:176591:77)
        at AccountRepo.active (definition) (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:79407:35)
        at Config.loadInstanceState (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:176690:21)
        at Config.loadInstanceState (definition) (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:176502:46)
        at Config.state (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:68545:21)
        at Config.state (definition) (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:176689:71)
        at Config.get (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:347232:23)
        at Config.get (definition) (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:176692:35)
        at InstanceBootstrap (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:347235:28)
        at InstanceStore.boot (file:///Applications/OpenCode%20Beta.app/Contents/Resources/app.asar/out/main/chunks/node--h_A4hOY.js:346496:28) failed
    2026-06-05T123131.log
    INFO  2026-06-05T12:31:31 +386ms service=default directory=/Users/cateds/.local/share/opencode/log creating instance
    INFO  2026-06-05T12:31:31 +1ms service=project directory=/Users/cateds/.local/share/opencode/log fromDirectory
    INFO  2026-06-05T12:31:31 +6ms service=default directory=/Users/cateds/.local/share/opencode/log bootstrapping
    INFO  2026-06-05T12:31:31 +8ms service=config path=/Users/cateds/.config/opencode/config.json loading
    INFO  2026-06-05T12:31:31 +0ms service=config path=/Users/cateds/.config/opencode/opencode.json loading
    INFO  2026-06-05T12:31:31 +0ms service=config path=/Users/cateds/.config/opencode/opencode.jsonc loading
    INFO  2026-06-05T12:31:31 +11ms service=plugin name= loading internal plugin
    INFO  2026-06-05T12:31:31 +0ms service=plugin name=sW loading internal plugin
    INFO  2026-06-05T12:31:31 +0ms service=plugin name=JM loading internal plugin
    INFO  2026-06-05T12:31:31 +0ms service=plugin name=V7 loading internal plugin
    INFO  2026-06-05T12:31:31 +0ms service=plugin name=wM loading internal plugin
    INFO  2026-06-05T12:31:31 +0ms service=plugin name=HM loading internal plugin
    INFO  2026-06-05T12:31:31 +0ms service=plugin name=VM loading internal plugin
    INFO  2026-06-05T12:31:31 +0ms service=plugin name=OM loading internal plugin
    INFO  2026-06-05T12:31:31 +0ms service=plugin name=PM loading internal plugin
    INFO  2026-06-05T12:31:31 +1ms service=plugin path=@cateds/opencode-pty loading plugin
    INFO  2026-06-05T12:31:31 +50ms service=lsp serverIds=zls, yaml-ls, vue, typescript, tinymist, texlab, terraform, svelte, sourcekit-lsp, rust, ruby-lsp, razor, pyright, prisma, php intelephense, oxlint, ocaml-lsp, nixd, lua-ls, kotlin-ls, julials, jdtls, haskell-language-server, gopls, gleam, fsharp, elixir-ls, eslint, dockerfile, deno, dart, clojure-lsp, clangd, csharp, biome, bash, astro enabled LSP servers
    INFO  2026-06-05T12:31:31 +0ms service=format all formatters are disabled
    INFO  2026-06-05T12:31:31 +0ms service=format init
    INFO  2026-06-05T12:31:31 +4ms service=provider status=started state
    ERROR 2026-06-05T12:31:31 +2ms service=server ref=err_2ea4e87c error=no such table: account cause=SQLiteError: no such table: account
        at prepare (unknown)
        at prepare (bun:sqlite:345:37)
        at query (bun:sqlite:367:28)
        at <anonymous> (/$bunfs/root/chunk-rwdw1w3s.js:104:29210)
        at runLoop (/$bunfs/root/chunk-rjmtn3z8.js:25:2045)
        at evaluate (/$bunfs/root/chunk-rjmtn3z8.js:25:1435)
        at dX (/$bunfs/root/chunk-rjmtn3z8.js:25:23770)
        at N (/$bunfs/root/chunk-rjmtn3z8.js:25:21994)
        at <anonymous> (/$bunfs/root/chunk-rjmtn3z8.js:25:21902)
        at AccountRepo.list (/$bunfs/root/chunk-t2dxttv4.js:3:6621)
        at AccountRepo.list (definition) (/$bunfs/root/chunk-t2dxttv4.js:3:1412)
        at Account.orgsByAccount (/$bunfs/root/chunk-ech9cm9d.js:2:183053)
        at Account.orgsByAccount (definition) (/$bunfs/root/chunk-t2dxttv4.js:3:6565)
        at ExperimentalHttpApi.console (/$bunfs/root/chunk-ech9cm9d.js:2:74667)
        at ExperimentalHttpApi.console (definition) (/$bunfs/root/chunk-ech9cm9d.js:2:182952) failed
    INFO  2026-06-05T12:31:31 +47ms service=provider init
    INFO  2026-06-05T12:31:32 +1375ms service=provider providerID=deepseek found
    INFO  2026-06-05T12:31:32 +0ms service=provider providerID=xiaomi found
    INFO  2026-06-05T12:31:32 +0ms service=provider providerID=xiaomi-token-plan-cn found
    INFO  2026-06-05T12:31:32 +0ms service=provider providerID=alibaba-cn found
    INFO  2026-06-05T12:31:32 +0ms service=provider providerID=openai found
    INFO  2026-06-05T12:31:32 +0ms service=provider providerID=github-copilot found
    INFO  2026-06-05T12:31:32 +0ms service=provider providerID=opencode found
    INFO  2026-06-05T12:31:32 +0ms service=provider status=completed duration=1424 state
    INFO  2026-06-05T12:31:33 +206ms service=mcp key=markitdown type=local found
    INFO  2026-06-05T12:31:34 +1050ms service=mcp key=markitdown mcp stderr: Processing request of type ListToolsRequest
    
    INFO  2026-06-05T12:31:34 +1ms service=mcp key=markitdown toolCount=1 create() successfully created client
    INFO  2026-06-05T12:31:34 +1ms service=mcp key=markitdown mcp stderr: Processing request of type ListResourcesRequest
    
    INFO  2026-06-05T12:31:34 +0ms service=mcp key=markitdown mcp stderr: Processing request of type ListPromptsRequest
    
    INFO  2026-06-05T12:31:34 +5ms service=skill count=26 init
    INFO  2026-06-05T12:32:10 +36336ms service=session id=ses_1683b013affeEihrp4aCxRet1b slug=witty-planet version=1.16.0 projectID=global directory=/Users/cateds/.local/share/opencode/log path=Users/cateds/.local/share/opencode/log title=New session - 2026-06-05T12:32:10.438Z agent=build model={"id":"deepseek-v4-pro","providerID":"deepseek","variant":"max"} cost=0 tokens={"input":0,"output":0,"reasoning":0,"cache":{"read":0,"write":0}} time={"created":1780662730438,"updated":1780662730438} created
    INFO  2026-06-05T12:32:10 +42ms service=session.prompt session.id=ses_1683b013affeEihrp4aCxRet1b step=0 loop
    INFO  2026-06-05T12:32:10 +7ms service=session.tools status=started resolveTools
    INFO  2026-06-05T12:32:10 +6ms service=shell-tool shell=/bin/zsh shell tool using shell
    INFO  2026-06-05T12:32:10 +0ms service=tool.registry status=started invalid
    INFO  2026-06-05T12:32:10 +0ms service=tool.registry status=completed duration=0 invalid
    INFO  2026-06-05T12:32:10 +0ms service=tool.registry status=started question
    INFO  2026-06-05T12:32:10 +0ms service=tool.registry status=completed duration=0 question
    INFO  2026-06-05T12:32:10 +0ms service=tool.registry status=started bash
    INFO  2026-06-05T12:32:10 +0ms service=tool.registry status=completed duration=0 bash
    INFO  2026-06-05T12:32:10 +0ms service=tool.registry status=started read
    INFO  2026-06-05T12:32:10 +0ms service=tool.registry status=completed duration=0 read
    INFO  2026-06-05T12:32:10 +0ms service=tool.registry status=started glob
    INFO  2026-06-05T12:32:10 +0ms service=tool.registry status=completed duration=0 glob
    INFO  2026-06-05T12:32:10 +0ms service=tool.registry status=started grep
    INFO  2026-06-05T12:32:10 +0ms service=tool.registry status=completed duration=0 grep
    INFO  2026-06-05T12:32:10 +0ms service=tool.registry status=started edit
    INFO  2026-06-05T12:32:10 +0ms service=tool.registry status=completed duration=0 edit
    INFO  2026-06-05T12:32:10 +0ms service=tool.registry status=started write
    INFO  2026-06-05T12:32:10 +0ms service=tool.registry status=completed duration=0 write
    INFO  2026-06-05T12:32:10 +0ms service=tool.registry status=started task
    INFO  2026-06-05T12:32:10 +1ms service=tool.registry status=completed duration=1 task
    INFO  2026-06-05T12:32:10 +0ms service=tool.registry status=started webfetch
    INFO  2026-06-05T12:32:10 +0ms service=tool.registry status=completed duration=0 webfetch
    INFO  2026-06-05T12:32:10 +0ms service=tool.registry status=started todowrite
    INFO  2026-06-05T12:32:10 +0ms service=tool.registry status=completed duration=0 todowrite
    INFO  2026-06-05T12:32:10 +0ms service=tool.registry status=started skill
    INFO  2026-06-05T12:32:10 +1ms service=tool.registry status=completed duration=1 skill
    INFO  2026-06-05T12:32:10 +0ms service=tool.registry status=started pty_spawn
    INFO  2026-06-05T12:32:10 +0ms service=tool.registry status=completed duration=0 pty_spawn
    INFO  2026-06-05T12:32:10 +0ms service=tool.registry status=started pty_write
    INFO  2026-06-05T12:32:10 +0ms service=tool.registry status=completed duration=0 pty_write
    INFO  2026-06-05T12:32:10 +0ms service=tool.registry status=started pty_read
    INFO  2026-06-05T12:32:10 +0ms service=tool.registry status=completed duration=0 pty_read
    INFO  2026-06-05T12:32:10 +0ms service=tool.registry status=started pty_list
    INFO  2026-06-05T12:32:10 +0ms service=tool.registry status=completed duration=0 pty_list
    INFO  2026-06-05T12:32:10 +0ms service=tool.registry status=started pty_kill
    INFO  2026-06-05T12:32:10 +0ms service=tool.registry status=completed duration=0 pty_kill
    INFO  2026-06-05T12:32:10 +0ms service=tool.registry status=started pty_await
    INFO  2026-06-05T12:32:10 +0ms service=tool.registry status=completed duration=0 pty_await
    INFO  2026-06-05T12:32:10 +2ms service=session.tools status=completed duration=10 resolveTools
    INFO  2026-06-05T12:32:10 +17ms service=llm providerID=deepseek modelID=deepseek-v4-pro session.id=ses_1683b013affeEihrp4aCxRet1b small=true agent=title mode=primary stream
    INFO  2026-06-05T12:32:10 +0ms service=provider status=started providerID=deepseek getSDK
    INFO  2026-06-05T12:32:10 +0ms service=provider providerID=deepseek pkg=@ai-sdk/openai-compatible using bundled provider
    INFO  2026-06-05T12:32:10 +3ms service=provider status=completed duration=3 providerID=deepseek getSDK
    INFO  2026-06-05T12:32:10 +1ms service=default llm.runtime=ai-sdk llm.provider=deepseek llm.model=deepseek-v4-pro llm runtime selected
    INFO  2026-06-05T12:32:10 +18ms service=session.processor session.id=ses_1683b013affeEihrp4aCxRet1b messageID=msg_e97c4fef3001NfLS0pnK5DW0Nr process
    INFO  2026-06-05T12:32:10 +1ms service=llm providerID=deepseek modelID=deepseek-v4-pro session.id=ses_1683b013affeEihrp4aCxRet1b small=false agent=build mode=primary stream
    INFO  2026-06-05T12:32:10 +1ms service=default llm.runtime=ai-sdk llm.provider=deepseek llm.model=deepseek-v4-pro llm runtime selected
    INFO  2026-06-05T12:32:14 +3613ms service=permission permission=read pattern=Users/cateds/.local/share/opencode/log action={"permission":"read","pattern":"*","action":"allow"} evaluated
    INFO  2026-06-05T12:32:14 +74ms service=session.prompt session.id=ses_1683b013affeEihrp4aCxRet1b step=1 loop
    INFO  2026-06-05T12:32:14 +3ms service=session.tools status=started resolveTools
    INFO  2026-06-05T12:32:14 +0ms service=tool.registry status=started invalid
    INFO  2026-06-05T12:32:14 +0ms service=tool.registry status=completed duration=0 invalid
    INFO  2026-06-05T12:32:14 +0ms service=tool.registry status=started question
    INFO  2026-06-05T12:32:14 +0ms service=tool.registry status=completed duration=0 question
    INFO  2026-06-05T12:32:14 +0ms service=tool.registry status=started bash
    INFO  2026-06-05T12:32:14 +0ms service=tool.registry status=completed duration=0 bash
    INFO  2026-06-05T12:32:14 +0ms service=tool.registry status=started read
    INFO  2026-06-05T12:32:14 +0ms service=tool.registry status=completed duration=0 read
    INFO  2026-06-05T12:32:14 +0ms service=tool.registry status=started glob
    INFO  2026-06-05T12:32:14 +0ms service=tool.registry status=completed duration=0 glob
    INFO  2026-06-05T12:32:14 +0ms service=tool.registry status=started grep
    INFO  2026-06-05T12:32:14 +0ms service=tool.registry status=completed duration=0 grep
    INFO  2026-06-05T12:32:14 +0ms service=tool.registry status=started edit
    INFO  2026-06-05T12:32:14 +0ms service=tool.registry status=completed duration=0 edit
    INFO  2026-06-05T12:32:14 +0ms service=tool.registry status=started write
    INFO  2026-06-05T12:32:14 +0ms service=tool.registry status=completed duration=0 write
    INFO  2026-06-05T12:32:14 +0ms service=tool.registry status=started task
    INFO  2026-06-05T12:32:14 +0ms service=tool.registry status=completed duration=0 task
    INFO  2026-06-05T12:32:14 +0ms service=tool.registry status=started webfetch
    INFO  2026-06-05T12:32:14 +0ms service=tool.registry status=completed duration=0 webfetch
    INFO  2026-06-05T12:32:14 +0ms service=tool.registry status=started todowrite
    INFO  2026-06-05T12:32:14 +0ms service=tool.registry status=completed duration=0 todowrite
    INFO  2026-06-05T12:32:14 +0ms service=tool.registry status=started skill
    INFO  2026-06-05T12:32:14 +1ms service=tool.registry status=completed duration=1 skill
    INFO  2026-06-05T12:32:14 +0ms service=tool.registry status=started pty_spawn
    INFO  2026-06-05T12:32:14 +0ms service=tool.registry status=completed duration=0 pty_spawn
    INFO  2026-06-05T12:32:14 +0ms service=tool.registry status=started pty_write
    INFO  2026-06-05T12:32:14 +0ms service=tool.registry status=completed duration=0 pty_write
    INFO  2026-06-05T12:32:14 +0ms service=tool.registry status=started pty_read
    INFO  2026-06-05T12:32:14 +0ms service=tool.registry status=completed duration=0 pty_read
    INFO  2026-06-05T12:32:14 +0ms service=tool.registry status=started pty_list
    INFO  2026-06-05T12:32:14 +0ms service=tool.registry status=completed duration=0 pty_list
    INFO  2026-06-05T12:32:14 +0ms service=tool.registry status=started pty_kill
    INFO  2026-06-05T12:32:14 +0ms service=tool.registry status=completed duration=0 pty_kill
    INFO  2026-06-05T12:32:14 +0ms service=tool.registry status=started pty_await
    INFO  2026-06-05T12:32:14 +0ms service=tool.registry status=completed duration=0 pty_await
    INFO  2026-06-05T12:32:14 +0ms service=session.tools status=completed duration=1 resolveTools
    INFO  2026-06-05T12:32:14 +14ms service=session.processor session.id=ses_1683b013affeEihrp4aCxRet1b messageID=msg_e97c50d92001tkkLmZ904uZ315 process
    INFO  2026-06-05T12:32:14 +0ms service=llm providerID=deepseek modelID=deepseek-v4-pro session.id=ses_1683b013affeEihrp4aCxRet1b small=false agent=build mode=primary stream
    INFO  2026-06-05T12:32:14 +1ms service=default llm.runtime=ai-sdk llm.provider=deepseek llm.model=deepseek-v4-pro llm runtime selected
    INFO  2026-06-05T12:32:16 +2454ms service=permission permission=read pattern=Users/cateds/.local/share/opencode/log/2026-06-05T123131.log action={"permission":"read","pattern":"*","action":"allow"} evaluated
    INFO  2026-06-05T12:32:16 +9ms service=lsp file=/Users/cateds/.local/share/opencode/log/2026-06-05T123131.log touching file
    INFO  2026-06-05T12:32:17 +658ms service=permission permission=read pattern=Users/cateds/.local/share/opencode/log/2026-06-05T123130.log action={"permission":"read","pattern":"*","action":"allow"} evaluated
    INFO  2026-06-05T12:32:17 +8ms service=lsp file=/Users/cateds/.local/share/opencode/log/2026-06-05T123130.log touching file
    INFO  2026-06-05T12:32:17 +605ms service=permission permission=read pattern=Users/cateds/.local/share/opencode/log/2026-06-05T123112.log action={"permission":"read","pattern":"*","action":"allow"} evaluated
    INFO  2026-06-05T12:32:17 +14ms service=lsp file=/Users/cateds/.local/share/opencode/log/2026-06-05T123112.log touching file
    INFO  2026-06-05T12:32:18 +26ms service=session.prompt session.id=ses_1683b013affeEihrp4aCxRet1b step=2 loop
    INFO  2026-06-05T12:32:18 +3ms service=session.tools status=started resolveTools
    INFO  2026-06-05T12:32:18 +0ms service=tool.registry status=started invalid
    INFO  2026-06-05T12:32:18 +0ms service=tool.registry status=completed duration=0 invalid
    INFO  2026-06-05T12:32:18 +0ms service=tool.registry status=started question
    INFO  2026-06-05T12:32:18 +0ms service=tool.registry status=completed duration=0 question
    INFO  2026-06-05T12:32:18 +0ms service=tool.registry status=started bash
    INFO  2026-06-05T12:32:18 +0ms service=tool.registry status=completed duration=0 bash
    INFO  2026-06-05T12:32:18 +0ms service=tool.registry status=started read
    INFO  2026-06-05T12:32:18 +0ms service=tool.registry status=completed duration=0 read
    INFO  2026-06-05T12:32:18 +0ms service=tool.registry status=started glob
    INFO  2026-06-05T12:32:18 +0ms service=tool.registry status=completed duration=0 glob
    INFO  2026-06-05T12:32:18 +0ms service=tool.registry status=started grep
    INFO  2026-06-05T12:32:18 +0ms service=tool.registry status=completed duration=0 grep
    INFO  2026-06-05T12:32:18 +0ms service=tool.registry status=started edit
    INFO  2026-06-05T12:32:18 +0ms service=tool.registry status=completed duration=0 edit
    INFO  2026-06-05T12:32:18 +0ms service=tool.registry status=started write
    INFO  2026-06-05T12:32:18 +0ms service=tool.registry status=completed duration=0 write
    INFO  2026-06-05T12:32:18 +0ms service=tool.registry status=started task
    INFO  2026-06-05T12:32:18 +1ms service=tool.registry status=completed duration=1 task
    INFO  2026-06-05T12:32:18 +0ms service=tool.registry status=started webfetch
    INFO  2026-06-05T12:32:18 +0ms service=tool.registry status=completed duration=0 webfetch
    INFO  2026-06-05T12:32:18 +0ms service=tool.registry status=started todowrite
    INFO  2026-06-05T12:32:18 +0ms service=tool.registry status=completed duration=0 todowrite
    INFO  2026-06-05T12:32:18 +0ms service=tool.registry status=started skill
    INFO  2026-06-05T12:32:18 +0ms service=tool.registry status=completed duration=0 skill
    INFO  2026-06-05T12:32:18 +0ms service=tool.registry status=started pty_spawn
    INFO  2026-06-05T12:32:18 +0ms service=tool.registry status=completed duration=0 pty_spawn
    INFO  2026-06-05T12:32:18 +0ms service=tool.registry status=started pty_write
    INFO  2026-06-05T12:32:18 +0ms service=tool.registry status=completed duration=0 pty_write
    INFO  2026-06-05T12:32:18 +0ms service=tool.registry status=started pty_read
    INFO  2026-06-05T12:32:18 +0ms service=tool.registry status=completed duration=0 pty_read
    INFO  2026-06-05T12:32:18 +0ms service=tool.registry status=started pty_list
    INFO  2026-06-05T12:32:18 +0ms service=tool.registry status=completed duration=0 pty_list
    INFO  2026-06-05T12:32:18 +0ms service=tool.registry status=started pty_kill
    INFO  2026-06-05T12:32:18 +0ms service=tool.registry status=completed duration=0 pty_kill
    INFO  2026-06-05T12:32:18 +0ms service=tool.registry status=started pty_await
    INFO  2026-06-05T12:32:18 +0ms service=tool.registry status=completed duration=0 pty_await
    INFO  2026-06-05T12:32:18 +1ms service=session.tools status=completed duration=2 resolveTools
    INFO  2026-06-05T12:32:18 +17ms service=session.processor session.id=ses_1683b013affeEihrp4aCxRet1b messageID=msg_e97c51c63001vxoMMnXWl4IhV4 process
    INFO  2026-06-05T12:32:18 +0ms service=llm providerID=deepseek modelID=deepseek-v4-pro session.id=ses_1683b013affeEihrp4aCxRet1b small=false agent=build mode=primary stream
    INFO  2026-06-05T12:32:18 +2ms service=default llm.runtime=ai-sdk llm.provider=deepseek llm.model=deepseek-v4-pro llm runtime selected
    INFO  2026-06-05T12:32:27 +9572ms service=permission permission=glob pattern=**/*.sqlite* action={"permission":"*","action":"allow","pattern":"*"} evaluated
    INFO  2026-06-05T12:32:27 +4ms service=permission permission=external_directory pattern=/Users/cateds/.local/share/opencode/* action={"permission":"external_directory","pattern":"*","action":"ask"} evaluated
    INFO  2026-06-05T12:32:27 +0ms service=permission id=per_e97c541e200136E7poYum2fqv5 permission=external_directory patterns=["/Users/cateds/.local/share/opencode/*"] asking
    INFO  2026-06-05T12:33:11 +43695ms service=default worker shutting down
    INFO  2026-06-05T12:33:11 +2ms service=default disposing all instances
    INFO  2026-06-05T12:33:11 +0ms service=default directory=/Users/cateds/.local/share/opencode/log disposing instance
  2. github-actions commented on Aug 5, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions