Skip to content

fix(vscode): include kilo-sandbox-mutation-worker.js in extension bundle - #11926

Merged
marius-kilocode merged 3 commits into
Kilo-Org:mainfrom
trim21:fix/vscode-missing-sandbox-worker
Jul 3, 2026
Merged

fix(vscode): include kilo-sandbox-mutation-worker.js in extension bundle#11926
marius-kilocode merged 3 commits into
Kilo-Org:mainfrom
trim21:fix/vscode-missing-sandbox-worker

Conversation

@trim21

@trim21 trim21 commented Jul 3, 2026

Copy link
Copy Markdown
Contributor

What

Fixes the missing kilo-sandbox-mutation-worker.js file in VS Code extension .vsix packages.

The release build script (packages/kilo-vscode/script/build.ts) was missing the copyKiloSandboxWorker call present in the local dev script (local-bin.ts). This caused all sandbox-enclosed file operations (write, copy, rename, chmod, etc.) to fail with:

Sandbox.mutate: error: Module not found "kilo-sandbox-mutation-worker.js"

Why

The kilo binary spawns kilo-sandbox-mutation-worker.js as a child process to perform filesystem mutations inside the bwrap sandbox. Without this file in the extension bin/ directory, all sandboxed file operations fail.

Fix

  • Added copyKiloSandboxWorker import and call in packages/kilo-vscode/script/build.ts, matching local-bin.ts

Closes #11925

trim21 and others added 2 commits July 4, 2026 00:36
The release build script (packages/kilo-vscode/script/build.ts) was
missing the copyKiloSandboxWorker call, causing the sandbox mutation
worker file to be absent from .vsix packages. All sandbox-enclosed file
operations (write, copy, rename, chmod, etc.) would fail with a
"Module not found" error because the kilo binary could not spawn the
required worker process.

Closes Kilo-Org#11925
@marius-kilocode
marius-kilocode self-requested a review July 3, 2026 16:39
@marius-kilocode
marius-kilocode enabled auto-merge (squash) July 3, 2026 16:46
@marius-kilocode
marius-kilocode merged commit e79b751 into Kilo-Org:main Jul 3, 2026
20 checks passed
@marius-kilocode

Copy link
Copy Markdown
Collaborator

@trim21 thanks for that. Corrected the formatting and merged!

@trim21
trim21 deleted the fix/vscode-missing-sandbox-worker branch July 3, 2026 16:48
@trim21

trim21 commented Jul 3, 2026

Copy link
Copy Markdown
Contributor Author

this repo is too big, git take too long to rebase, I haven't be able to rebase the commit after the formatting...

@marius-kilocode

Copy link
Copy Markdown
Collaborator

No worries, already merged it! Thanks!

@kilo-code-bot

kilo-code-bot Bot commented Jul 3, 2026

Copy link
Copy Markdown
Contributor

Code Review Summary

Status: No Issues Found | Recommendation: Merge

Files Reviewed (2 files)
  • packages/kilo-vscode/script/build.ts
  • .changeset/fix-missing-sandbox-worker.md

Reviewed by claude-sonnet-5-20260630 · Input: 14 · Output: 3.3K · Cached: 267.9K

Review guidance: REVIEW.md from base branch main

@trim21

trim21 commented Jul 3, 2026

Copy link
Copy Markdown
Contributor Author

No worries, already merged it! Thanks!

please consider make a new vscode release....

@marius-kilocode

Copy link
Copy Markdown
Collaborator

@trim21 also done. Just released!

t7tran pushed a commit to t7tran/kilocode that referenced this pull request Aug 14, 2026
…dle (Kilo-Org#11926)

* fix(vscode): include kilo-sandbox-mutation-worker.js in extension bundle

The release build script (packages/kilo-vscode/script/build.ts) was
missing the copyKiloSandboxWorker call, causing the sandbox mutation
worker file to be absent from .vsix packages. All sandbox-enclosed file
operations (write, copy, rename, chmod, etc.) would fail with a
"Module not found" error because the kilo binary could not spawn the
required worker process.

Closes Kilo-Org#11925

* chore(vscode): fix import formatting

---------

Co-authored-by: marius-kilocode <marius@kilocode.ai>
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.

[Bug] kilo-sandbox-mutation-worker.js missing from VS Code extension bundle

2 participants