Summary
Sandbox container names are derived from WhatsApp chat IDs which contain @ (e.g. 245234076266625@lid). Docker container names only allow [a-zA-Z0-9][a-zA-Z0-9_.-], causing sandbox creation to fail.
Error
docker: Error response from daemon: Invalid container name
(goclaw-sbx-agent-chloe-whatsapp-direct-245234076266625@lid),
only [a-zA-Z0-9][a-zA-Z0-9_.-] are allowed
Impact
All exec tool calls fail with:
credentialed exec requires sandbox but sandbox is unavailable
This affects all WhatsApp channels since their chat IDs always contain @lid.
Expected Fix
Sanitize the chat ID before using it as part of the Docker container name. Replace invalid characters (@, :, etc.) with valid alternatives (e.g. - or _).
Environment
- GoClaw: Docker (latest)
- Channel: WhatsApp (whatsmeow)
- Chat ID format:
245234076266625@lid or 245234076266625:52@lid
Summary
Sandbox container names are derived from WhatsApp chat IDs which contain
@(e.g.245234076266625@lid). Docker container names only allow[a-zA-Z0-9][a-zA-Z0-9_.-], causing sandbox creation to fail.Error
Impact
All
exectool calls fail with:This affects all WhatsApp channels since their chat IDs always contain
@lid.Expected Fix
Sanitize the chat ID before using it as part of the Docker container name. Replace invalid characters (
@,:, etc.) with valid alternatives (e.g.-or_).Environment
245234076266625@lidor245234076266625:52@lid