Skip to content

Conversation

@akonyer
Copy link
Contributor

@akonyer akonyer commented Jan 13, 2026

This pull request restores and improves Docker sandbox configuration and command execution, focusing on two main areas: fixing configuration validation for custom bind mounts, and ensuring custom tools are accessible in the Docker sandbox by properly handling the PATH environment variable. It also adds comprehensive tests for both features and updates documentation to help users troubleshoot common Docker sandbox issues.

Sandbox Docker configuration fixes and enhancements:

  • Restored the docker.binds config field in the sandbox configuration, fixing validation errors and allowing custom bind mounts to be specified again. Updated the schema and added tests to ensure only arrays of strings are accepted. [1] [2]
  • Added a changelog entry noting the restoration of docker.binds and the fix for config validation errors with custom bind mounts.

Docker exec command improvements:

  • Modified buildDockerExecArgs in bash-tools.ts to prepend the configured PATH after login shell profile sourcing, ensuring both custom tools and system paths are available when running commands via docker exec.
  • Added and exported tests for buildDockerExecArgs to verify correct PATH handling, shell invocation, and support for workdir and TTY options. [1] [2] [3]
  • Updated documentation to explain how to set up the PATH for custom tools in Docker sandboxes, including troubleshooting guidance for users.
  • Added a changelog entry describing the preservation of the configured PATH when running commands via docker exec.

The bind mounts were accidentally removed I believe in this commit, so this is a bug fix/revert for: akonyer@2563040

- Restore docker.binds field in zod-schema accidentally removed in 2563040
- Fix PATH preservation when running commands via docker exec (login shell
  sources /etc/profile which resets PATH; now prepends custom PATH)
- Add unit tests for both fixes
- Update docs with troubleshooting note for custom PATH in sandboxes

Co-Authored-By: Claude Opus 4.5 <[email protected]>
steipete added a commit that referenced this pull request Jan 15, 2026
@steipete
Copy link
Contributor

Thanks @akonyer! Landed on main as eaace34.

Changes:

  • restore docker.binds validation + tests
  • preserve PATH when running docker exec in sandbox (tests now import buildDockerExecArgs from bash-tools.shared)
  • docs: PATH troubleshooting for custom tools
  • changelog entry (2026.1.15)

Tests: pnpm lint (warns: restrict-template-expressions in src/infra/outbound/channel-selection.ts and src/gateway/server-methods/agent.ts), pnpm build, pnpm test

@steipete steipete closed this Jan 15, 2026
steipete added a commit to mneves75/clawdbot that referenced this pull request Jan 15, 2026
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