You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 70d2ee5
Browse filesBrowse the repository at this point in the historyBrowse files
OpenCode fails to start: "no such column: project_id" (AltharIDE#519)
* OpenCode 1.x on a data folder OpenCode 2 moved on: say so, and download 2.x
OpenCode 2's workspace_domain migration drops workspace.project_id, which
OpenCode 1.x still updates on opening a repository, so it stops with 'no
such column: project_id' (anomalyco/opencode#42170). The stuck card now
says what's wrong and how to update to version 2, and Althar's own
download of OpenCode takes the newest 2.x release rather than GitHub's
latest, which is still 1.x.
Co-authored-by: Althar <[email protected]>
* The way out of an older OpenCode names OpenCode 2's own install
1.x's upgrade and installer refuse a 2.x version, so the card points at
OpenCode 2's docs, which give its installer for each platform.
Co-authored-by: Althar <[email protected]>
---------
Co-authored-by: Althar <[email protected]>
Copy file name to clipboardExpand all lines: packages/runtime/src/words.ts
+13Lines changed: 13 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -50,6 +50,18 @@ const hostDenied =
50
50
/** A sentence, with its full stop. */
51
51
constsentence=(words: string): string=>(/[.!?]$/.test(words) ? words : `${words}.`)
52
52
53
+
/**
54
+
* OpenCode 1.x on a data folder OpenCode 2 has migrated: 2's `workspace_domain`
55
+
* rebuilt the `workspace` table without `project_id`, which 1.x still updates
56
+
* when it opens a repository, so it stops on every start there (anomalyco/opencode#42170).
57
+
* Neither `opencode upgrade` nor 1.x's installer moves to 2 (the installer refuses
58
+
* a 2.x version): OpenCode 2 has an installer of its own, which its docs give for
59
+
* each platform. Seen 2 November 2026, 1.18.31 against 2.2.5.
60
+
*/
61
+
constolderOpenCode=/nosuchcolumn:project_id/
62
+
constolderOpenCodeWords=
63
+
'OpenCode’s own database was moved on by OpenCode 2, and this OpenCode is 1.x, which can’t open it. Install OpenCode 2 (opencode.ai/v2/docs says how), then try again.'
64
+
53
65
/** An agent whose account is signed out, as a step's call says it: the call itself offers signing in again. */
54
66
exportconstsignedOutWords='The agent is signed out. Sign it in again in Settings, then try again.'
// OpenCode 1.x on a data folder OpenCode 2 has moved on, as 1.18.31 said it: what's wrong and the way out, never the bare SQLite error.
2570
+
assert.strictEqual(
2571
+
agentSaid(
2572
+
newAgentExited({
2573
+
code: 1,
2574
+
signal: null,
2575
+
stderr: '\u001b[91m\u001b[1mError: \u001b[0mUnexpected error\n\nno such column: project_id\n',
2576
+
}),
2577
+
),
2578
+
'OpenCode’s own database was moved on by OpenCode 2, and this OpenCode is 1.x, which can’t open it. Install OpenCode 2 (opencode.ai/v2/docs says how), then try again.',
0 commit comments