[GH-ISSUE #590] [Error] Failed to initialize internal database: SQLite error: table cas_cache already exists #188

Closed
opened 2026-03-02 04:12:43 +03:00 by kerem · 1 comment
Owner

Originally created by @dragove on GitHub (Feb 26, 2026).
Original GitHub issue: https://github.com/git-ai-project/git-ai/issues/590

[Error] Failed to initialize internal database: SQLite error: table cas_cache already exists in
CREATE TABLE cas_cache (
hash TEXT PRIMARY KEY NOT NULL,
messages TEXT NOT NULL,
cached_at INTEGER NOT NULL
);
at offset 18

What I did:

  1. code with opencode
  2. commit and reset hard
  3. switch branch and create a new branch
  4. code with opencode again
Originally created by @dragove on GitHub (Feb 26, 2026). Original GitHub issue: https://github.com/git-ai-project/git-ai/issues/590 [Error] Failed to initialize internal database: SQLite error: table cas_cache already exists in CREATE TABLE cas_cache ( hash TEXT PRIMARY KEY NOT NULL, messages TEXT NOT NULL, cached_at INTEGER NOT NULL ); at offset 18 What I did: 1. code with opencode 2. commit and reset hard 3. switch branch and create a new branch 4. code with opencode again
kerem 2026-03-02 04:12:43 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@svarlamov commented on GitHub (Feb 26, 2026):

Sorry that you ran into this! We actually shipped a patch in the last release #577

Based on the error message, I'm fairly certain this was on a prior release. Can you please try upgrading to git ai 1.1.5? While checking this out I noticed some more potential race conditions that are being addressed in #591

<!-- gh-comment-id:3963893519 --> @svarlamov commented on GitHub (Feb 26, 2026): Sorry that you ran into this! We actually shipped a patch in the last release #577 Based on the error message, I'm fairly certain this was on a prior release. Can you please try upgrading to git ai `1.1.5`? While checking this out I noticed some more potential race conditions that are being addressed in #591
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/git-ai#188
No description provided.