Skip to content

Bug: sandbox container name invalid — @ in WhatsApp chat ID breaks Docker naming #1029

@kamushadenes

Description

@kamushadenes

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2-mediumFunctional bug, UX broken — prioritized backlogarea:channelsTelegram, Discord, channel managerarea:sandboxbugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions