Skip to content

fix(cli): handle SQLite lock errors - #12884

Merged
marius-kilocode merged 1 commit into
mainfrom
atom-rhodium
Aug 5, 2026
Merged

fix(cli): handle SQLite lock errors#12884
marius-kilocode merged 1 commit into
mainfrom
atom-rhodium

Conversation

@marius-kilocode

Copy link
Copy Markdown
Collaborator

Multiple Kilo processes can share the global SQLite database, so transient writer contention can surface as SQLITE_BUSY after the database busy timeout. The local CLI hosts the server in the same process, and the generic defect logger currently writes the complete Effect cause to the terminal.

Classify SQLite lock timeouts as transient database-busy failures, return a concise retryable response for synchronous prompts, and publish the same concise message for asynchronous prompts. Other server defects retain the existing detailed diagnostics.

@kilo-code-bot

kilo-code-bot Bot commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

Code Review Summary

Status: No Issues Found | Recommendation: Merge

Files Reviewed (5 files)
  • .changeset/quiet-sqlite-lock-errors.md
  • packages/opencode/src/kilocode/database/sqlite-error.ts
  • packages/opencode/src/server/routes/instance/httpapi/handlers/session.ts
  • packages/opencode/src/server/routes/instance/httpapi/middleware/error.ts
  • packages/opencode/test/kilocode/database/sqlite-error.test.ts

Reviewed by kimi-k3 · Input: 139K · Output: 13.3K · Cached: 617K

Review guidance: REVIEW.md from base branch main

@marius-kilocode
marius-kilocode merged commit 6059881 into main Aug 5, 2026
43 of 45 checks passed
@marius-kilocode
marius-kilocode deleted the atom-rhodium branch August 5, 2026 09:03
LudwigSolutionsAI pushed a commit to LudwigSolutionsAI/kilocode that referenced this pull request Aug 6, 2026
* fix(tui): prevent home wordmark corruption in height-constrained terminals (Kilo-Org#13069)

* feat(prompt): mode-specific input placeholders (Kilo-Org#12388)

* fix(tui): keep /share available to copy existing link (Kilo-Org#12532)

* fix(tui): dismiss dialogs with ctrl+c (Kilo-Org#12884)

* fix(app): terminal resize

* fix(console): translations

* fix(app): terminal PTY buffer carryover

* fix(app): notifications on child sessions

* Revert "feat(desktop): add WSL backend mode (Kilo-Org#12914)"

This reverts commit 213a872.

* release: v1.1.58

* refactor: kilo compat for v1.1.58

---------

Co-authored-by: Kit Langton <kit.langton@gmail.com>
Co-authored-by: Adam <2363879+adamdotdevin@users.noreply.github.com>
Co-authored-by: opencode <opencode@sst.dev>
LudwigSolutionsAI pushed a commit to LudwigSolutionsAI/kilocode that referenced this pull request Aug 6, 2026
t7tran pushed a commit to t7tran/kilocode that referenced this pull request Aug 14, 2026
* fix(tui): prevent home wordmark corruption in height-constrained terminals (Kilo-Org#13069)

* feat(prompt): mode-specific input placeholders (Kilo-Org#12388)

* fix(tui): keep /share available to copy existing link (Kilo-Org#12532)

* fix(tui): dismiss dialogs with ctrl+c (Kilo-Org#12884)

* fix(app): terminal resize

* fix(console): translations

* fix(app): terminal PTY buffer carryover

* fix(app): notifications on child sessions

* Revert "feat(desktop): add WSL backend mode (Kilo-Org#12914)"

This reverts commit e63699f.

* release: v1.1.58

* refactor: kilo compat for v1.1.58

---------

Co-authored-by: Kit Langton <kit.langton@gmail.com>
Co-authored-by: Adam <2363879+adamdotdevin@users.noreply.github.com>
Co-authored-by: opencode <opencode@sst.dev>
t7tran pushed a commit to t7tran/kilocode that referenced this pull request Aug 14, 2026
t7tran pushed a commit to t7tran/kilocode that referenced this pull request Aug 14, 2026
fix(cli): handle SQLite lock errors
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants