Skip to content

fix(vscode): bootstrap dependencies in worktrees - #13265

Merged
marius-kilocode merged 1 commit into
mainfrom
fix-opencode-core-module-resolution
Aug 20, 2026
Merged

fix(vscode): bootstrap dependencies in worktrees#13265
marius-kilocode merged 1 commit into
mainfrom
fix-opencode-core-module-resolution

Conversation

@marius-kilocode

Copy link
Copy Markdown
Collaborator

Fresh Agent Manager worktrees do not contain ignored node_modules or generated build artifacts. Running the extension launcher in one of these worktrees therefore fails when Bun cannot resolve workspace packages such as @opencode-ai/core, even though the source checkout is valid.

The launcher now checks the required extension bundler, CLI core, and SDK generator modules before building. If any are missing, it runs one locked root workspace install with bun install --frozen-lockfile. Existing launches with valid dependencies continue without an install.

This keeps dependency provisioning at the launcher boundary, where it covers direct launch commands and Agent Manager run scripts without changing CLI or SDK build behavior.

@kilo-code-bot

kilo-code-bot Bot commented Aug 20, 2026

Copy link
Copy Markdown
Contributor

Code Review Summary

Status: No Issues Found | Recommendation: Merge

Files Reviewed (2 files)
  • .changeset/worktree-dependencies.md
  • packages/kilo-vscode/script/launch.ts

Reviewed by grok-4.6 · Input: 239.8K · Output: 8.5K · Cached: 410.4K

Review guidance: REVIEW.md from base branch main

@marius-kilocode
marius-kilocode merged commit c43b8a0 into main Aug 20, 2026
23 checks passed
@marius-kilocode
marius-kilocode deleted the fix-opencode-core-module-resolution branch August 20, 2026 10:21
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