Skip to content

Route sandbox commands by tool profile - #228

Merged
yottadynamics merged 2 commits into
mainfrom
worktree-sandbox-lifecycle-plan
Aug 27, 2026
Merged

yottadynamics merged 2 commits into
mainfrom
worktree-sandbox-lifecycle-plan

Conversation

@yottadynamics

Copy link
Copy Markdown
Owner

Summary

Adds automatic sandbox profile routing so command-capable tools choose the right Podman container from tool intent instead of requiring users to switch sandbox profiles manually.

  • run_bash uses the default sandbox profile from [sandbox].image
  • subprocess-backed document paths use the documents profile from [sandbox].documents_image
  • containers are created lazily and reused per session/dispatch worker profile
  • sandbox-enabled profile creation failures fail closed instead of falling back to host execution

Related issue

None.

How was this tested?

  • go test ./internal/agent ./internal/agentruntime ./internal/config — passes
  • go test ./... — passes
  • go vet ./... — passes
  • govulncheck ./... — no reachable vulnerabilities
  • lsp_changed_files_diagnostics — no compile diagnostics; one non-blocking stale style hint remained after applying the suggested errors.AsType shape

Checklist

  • go test ./... passes
  • go vet ./... is clean
  • govulncheck ./... reports no reachable vulnerabilities
  • Tests added or updated — a new capability ships with tests, a bug fix ships with a regression test
  • Docs updated in the same change if behavior or surface changed (relevant docs/ guide)
  • PR is focused on one logical change

@yottadynamics
yottadynamics merged commit f8cb88f into main Aug 27, 2026
7 checks passed
@yottadynamics
yottadynamics deleted the worktree-sandbox-lifecycle-plan branch August 27, 2026 01:46
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.

1 participant