Skip to content

feat(sandbox): widen writable-paths settings input and add coverage - #12008

Merged
marius-kilocode merged 1 commit into
mainfrom
feat/sandbox-writable-paths-ui-test
Jul 7, 2026
Merged

feat(sandbox): widen writable-paths settings input and add coverage#12008
marius-kilocode merged 1 commit into
mainfrom
feat/sandbox-writable-paths-ui-test

Conversation

@marius-kilocode

@marius-kilocode marius-kilocode commented Jul 7, 2026

Copy link
Copy Markdown
Collaborator

Follow-up to #11995, which added the sandbox_writable_paths option and its Sandboxing settings UI.

The Additional Writable Paths input inherited the default settings-row input column, which is capped at 160px. Filesystem paths are long, so the field truncated most of what the user typed and made the list of configured paths hard to scan. This widens that single row using the existing wide-input variant, giving the input roughly the full control column while leaving the network toggle row unchanged.

It also backfills automated coverage for behavior that previously had none:

  • Real sandbox-exec enforcement in policy.test.ts: a configured extra path becomes writable, an unlisted sibling stays denied, and .git inside an extra writable path is still denied.
  • A config-scope test in config.test.ts confirming sandbox_writable_paths is honored from global config only and dropped from a project kilo.json, so a repository cannot widen its own sandbox.
image

Widen the Additional Writable Paths input in the Sandboxing settings tab
so long filesystem paths are readable while typing, reusing the existing
wide-input variant without affecting the network toggle row.

Add tests for the sandbox_writable_paths behavior: real sandbox
enforcement that configured extra paths become writable while unlisted
paths and .git stay denied, and a config-scope test confirming the
setting is honored from global config only and dropped from project
config.
@kilo-code-bot

kilo-code-bot Bot commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

Code Review Summary

Status: No Issues Found | Recommendation: Merge

Files Reviewed (4 files)
  • .changeset/sandbox-writable-paths-input-width.md
  • packages/kilo-vscode/webview-ui/src/components/settings/SandboxingTab.tsx
  • packages/opencode/test/kilocode/config/config.test.ts
  • packages/opencode/test/kilocode/sandbox/policy.test.ts

Reviewed by claude-sonnet-5-20260630 · Input: 38 · Output: 6.7K · Cached: 1.5M

Review guidance: REVIEW.md from base branch main

@marius-kilocode
marius-kilocode enabled auto-merge July 7, 2026 12:50
@marius-kilocode
marius-kilocode merged commit aa454eb into main Jul 7, 2026
28 checks passed
@marius-kilocode
marius-kilocode deleted the feat/sandbox-writable-paths-ui-test branch July 7, 2026 13:55
t7tran pushed a commit to t7tran/kilocode that referenced this pull request Aug 14, 2026
…-paths-ui-test

feat(sandbox): widen writable-paths settings input and add coverage
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