From 363838c309b46cef51b1bb3dff447362adf7508c Mon Sep 17 00:00:00 2001 From: Thieu Nguyen <79964592+thieung@users.noreply.github.com> Date: Sun, 1 Mar 2026 16:38:23 -0800 Subject: [PATCH] fix(sandbox): rename from openclaw to goclaw for project name consistency (#35) Update sandbox image name, container prefix, Docker labels, and MCP client info from 'openclaw' to 'goclaw' to match the repository project name. Changes: - internal/sandbox/sandbox.go: image and container prefix - internal/sandbox/docker.go: Docker label and fallback prefix - docker-compose.sandbox.yml: image reference in comments and env - internal/mcp/manager_connect.go: MCP client info name --- docker-compose.sandbox.yml | 4 ++-- internal/mcp/manager_connect.go | 2 +- internal/sandbox/docker.go | 4 ++-- internal/sandbox/sandbox.go | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/docker-compose.sandbox.yml b/docker-compose.sandbox.yml index 1a6883dd..42b765a2 100644 --- a/docker-compose.sandbox.yml +++ b/docker-compose.sandbox.yml @@ -1,7 +1,7 @@ # Sandbox overlay — enables Docker-based sandbox for agent code execution. # # Prerequisites: -# 1. Build the sandbox image: docker build -t openclaw-sandbox:bookworm-slim -f Dockerfile.sandbox . +# 1. Build the sandbox image: docker build -t goclaw-sandbox:bookworm-slim -f Dockerfile.sandbox . # 2. Ensure Docker socket is accessible # # Usage (with managed mode): @@ -19,7 +19,7 @@ services: - /var/run/docker.sock:/var/run/docker.sock environment: - GOCLAW_SANDBOX_MODE=all - - GOCLAW_SANDBOX_IMAGE=openclaw-sandbox:bookworm-slim + - GOCLAW_SANDBOX_IMAGE=goclaw-sandbox:bookworm-slim - GOCLAW_SANDBOX_WORKSPACE_ACCESS=rw - GOCLAW_SANDBOX_SCOPE=session - GOCLAW_SANDBOX_MEMORY_MB=512 diff --git a/internal/mcp/manager_connect.go b/internal/mcp/manager_connect.go index b57bda1a..969a6602 100644 --- a/internal/mcp/manager_connect.go +++ b/internal/mcp/manager_connect.go @@ -32,7 +32,7 @@ func (m *Manager) connectServer(ctx context.Context, name, transportType, comman initReq := mcpgo.InitializeRequest{} initReq.Params.ProtocolVersion = mcpgo.LATEST_PROTOCOL_VERSION initReq.Params.ClientInfo = mcpgo.Implementation{ - Name: "openclaw-go", + Name: "goclaw", Version: "1.0.0", } diff --git a/internal/sandbox/docker.go b/internal/sandbox/docker.go index 579a4092..64c8ac4c 100644 --- a/internal/sandbox/docker.go +++ b/internal/sandbox/docker.go @@ -40,7 +40,7 @@ func newDockerSandbox(ctx context.Context, name string, cfg Config, workspace st args := []string{ "run", "-d", "--name", name, - "--label", "openclaw.sandbox=true", + "--label", "goclaw.sandbox=true", } // Security hardening (matching TS buildSandboxCreateArgs) @@ -251,7 +251,7 @@ func (m *DockerManager) Get(ctx context.Context, key string, workspace string) ( prefix := m.config.ContainerPrefix if prefix == "" { - prefix = "openclaw-sbx-" + prefix = "goclaw-sbx-" } name := prefix + sanitizeKey(key) sb, err := newDockerSandbox(ctx, name, m.config, workspace) diff --git a/internal/sandbox/sandbox.go b/internal/sandbox/sandbox.go index 1173aa22..bd5b7612 100644 --- a/internal/sandbox/sandbox.go +++ b/internal/sandbox/sandbox.go @@ -86,7 +86,7 @@ type Config struct { func DefaultConfig() Config { return Config{ Mode: ModeOff, - Image: "openclaw-sandbox:bookworm-slim", + Image: "goclaw-sandbox:bookworm-slim", WorkspaceAccess: AccessRW, Scope: ScopeSession, MemoryMB: 512, @@ -97,7 +97,7 @@ func DefaultConfig() Config { CapDrop: []string{"ALL"}, Tmpfs: []string{"/tmp", "/var/tmp", "/run"}, MaxOutputBytes: 1 << 20, // 1MB - ContainerPrefix: "openclaw-sbx-", + ContainerPrefix: "goclaw-sbx-", Workdir: "/workspace", IdleHours: 24, MaxAgeDays: 7,