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
This commit is contained in:
Thieu Nguyen authored and GitHub committed 2026-03-02 07:38:23 +07:00
1 parent df02ab77f2
commit 363838c309
4 files changed
+7 -7

No files matched your search

+2 -2
View File
@@ -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
+1 -1
View File
@@ -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",
}
+2 -2
View File
@@ -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)
+2 -2
View File
@@ -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,