Repository navigation
feat!: openclaw-style sandboxMode — per-agent sandbox policy - #43
Merged
Merged
Conversation
) sandboxMode: 'auto' (default — sandbox when the engine responds) | 'all' | 'non-main' | 'off'; per-agent AgentConfig.sandbox override. containerRuntime is engine-only again ('local' value gets a migration error). Orphan reaping sweeps both pidfiles and containers. Onboard wizard asks the sandbox question with the no-isolation warning.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #42
sandboxMode: 'auto' | 'all' | 'non-main' | 'off'(defaultauto: sandbox when the container engine actually responds — Docker quickstart unchanged, engine-less machines just work)AgentConfig.sandbox: true/falseoverrides the global mode — openclaw's most useful pattern: trusted main on the host, workers containedcontainerRuntimeis engine-only again (docker/podman/container); the short-lived'local'value from Built-in 'local' runtime: run agents as plain processes, no container engine #38 throws a migration error pointing atsandboxMode: 'off'npx jsclaw onboardasks the sandbox question (engine detected → choose all/non-main/off, default all; no engine → off with the no-isolation warning) and prompts forlocalRunnerwhen any agent can run unsandboxedall↔ openclawoff) and the standing warningTests: 124/124 (new resolveSandbox coverage: modes, isMain, per-agent override, auto fallback with a missing engine, migration + validation errors). Verified live: the resident instance migrated from
containerRuntime: 'local'tosandboxMode: 'off'and the agent responded over the new path.