Skip to content

fix(vscode): restore sessions after channel database regression - #11087

Merged
marius-kilocode merged 1 commit into
mainfrom
fix-vscode-shared-session-db
Jun 10, 2026
Merged

fix(vscode): restore sessions after channel database regression#11087
marius-kilocode merged 1 commit into
mainfrom
fix-vscode-shared-session-db

Conversation

@marius-kilocode

Copy link
Copy Markdown
Collaborator

PR #11031 changed non-production CLI binaries to select a database from their installation channel. Its compatibility commit 6ecaaab48a removed the prior Kilo override that always selected the shared kilo.db.

Channel-specific databases are useful for standalone CLI development, but they break the VS Code development extension. The extension bundles a branch-channel binary while Agent Manager keeps shared worktree and session IDs in the main checkout's .kilo/agent-manager.json. After #11031, those IDs were restored from shared state but looked up in opencode-<channel>.db instead of the kilo.db where the sessions exist, causing valid sessions to fail with Session not found.

This restores the extension's previous compatibility behavior at its owned backend spawn boundary. Every extension-managed kilo serve process receives KILO_DISABLE_CHANNEL_DB=true, so the sidebar, editor tabs, and Agent Manager resolve the same persisted sessions across branches and worktrees. Standalone CLI development keeps channel isolation, production behavior remains unchanged, and no session state or Agent Manager metadata is migrated or rewritten.

@kilo-code-bot

kilo-code-bot Bot commented Jun 10, 2026

Copy link
Copy Markdown
Contributor

Code Review Summary

Status: No Issues Found | Recommendation: Merge

Files Reviewed (3 files)
  • .changeset/share-vscode-session-database.md
  • packages/kilo-vscode/src/services/cli-backend/server-manager.ts
  • packages/kilo-vscode/tests/unit/server-manager-utils.test.ts

Reviewed by claude-4.6-sonnet-20260217 · 472,581 tokens

Review guidance: REVIEW.md from base branch main

@marius-kilocode
marius-kilocode merged commit 6addc10 into main Jun 10, 2026
23 of 25 checks passed
@marius-kilocode
marius-kilocode deleted the fix-vscode-shared-session-db branch June 10, 2026 17:15
t7tran pushed a commit to t7tran/kilocode that referenced this pull request Aug 14, 2026
…sion-db

fix(vscode): restore sessions after channel database regression
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