From 37f02015457f7db6ed601e876338289d443ba47a Mon Sep 17 00:00:00 2001 From: Mariano Martin Date: Tue, 21 Apr 2026 21:29:49 +0200 Subject: [PATCH] fix: remove explicit root User from agent container config AgentCrew was launching agent containers with User: '0:0' (root). Claude Code 2.1.92+ blocks --dangerously-skip-permissions when running as root, causing agents to exit silently with code 0 and no output. The entrypoint.sh already handles user switching via gosu by detecting the workspace owner uid. Removing the explicit User field lets the entrypoint manage privileges correctly, making Claude Code 2.1.92+ work without downgrading or workarounds. Fixes: silent exit 0 with no stdout when using Claude Code 2.1.92+ --- internal/runtime/docker.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/runtime/docker.go b/internal/runtime/docker.go index 172b9f0..e953cc8 100644 --- a/internal/runtime/docker.go +++ b/internal/runtime/docker.go @@ -562,7 +562,7 @@ func (d *DockerRuntime) DeployAgent(ctx context.Context, config AgentConfig) (*A resp, err := d.client.ContainerCreate(ctx, &container.Config{ Image: img, - User: "0:0", // Start as root so entrypoint.sh can fix workspace permissions and drop privileges via gosu. + Env: env, Labels: map[string]string{ LabelTeam: config.TeamName,