CodeWhale icon indicating copy to clipboard operation
CodeWhale copied to clipboard

exec_shell fails on macOS when Docker Desktop buildx activity files have com.apple.provenanc

Open encyc opened this issue 6 months ago • 0 comments

Environment

- DeepSeek TUI version: 0.8.28
- OS: macOS (Apple Silicon)
- Docker Desktop: 28.3.0

Steps to reproduce

1. Have Docker Desktop running with BuildKit enabled
2. Run `docker compose build` or `docker build` via `exec_shell` / `task_shell_start`
3. Observe: `failed to update builder last activity time: open /Users/.../.docker/buildx/activity/.tmp-...: operation not permitted`

Root cause

macOS applies `com.apple.provenance` extended attributes to files created by Docker Desktop's signed process. When the TUI's shell sandbox (runnin
g as a child of the TUI process, not Docker Desktop) tries to write to `~/.docker/buildx/activity/*`, the kernel blocks it with `EPERM`.

Even after deleting and recreating the directory from Python (which succeeds), Docker Desktop's daemon recreates the files with provenance on the 
next build attempt.

Workaround

- Run Docker builds from a regular terminal outside the TUI
- Or disable BuildKit: `DOCKER_BUILDKIT=0 docker compose build` (only works if Dockerfiles don't use `RUN --mount`)

Suggested fix

Consider options to bypass `com.apple.provenance` in the sandbox, or detect this failure mode and surface a clear error message suggesting the use
r run the command in an external terminal.

encyc avatar May 11 '26 12:05 encyc