Skip to content

SANDBOX_NAME vs NEMOCLAW_SANDBOX env var inconsistency causes Telegram bridge to target wrong sandbox #198

Closed

Description

@ksimback

Environment

  • Ubuntu 24 on DigitalOcean
  • OpenShell v0.0.6
  • NemoClaw from main (March 17, 2026)

Problem

Two scripts read different environment variables for the sandbox name:

  • scripts/start-services.sh line 22: SANDBOX_NAME="${NEMOCLAW_SANDBOX:-default}"
  • scripts/telegram-bridge.js line 24: const SANDBOX = process.env.SANDBOX_NAME || "nemoclaw";

The start script reads NEMOCLAW_SANDBOX (defaulting to default), sets a local SANDBOX_NAME variable, but doesn't export it. The bridge reads SANDBOX_NAME from the environment (defaulting to nemoclaw). Since the start script launches the bridge via nohup node telegram-bridge.js, the bridge never receives the value the start script resolved.

Additionally, the PID directory is based on the start script's value (/tmp/nemoclaw-services-${SANDBOX_NAME}), so if the two disagree, you end up with mismatched log directories and ghost processes.

Workaround

Set both NEMOCLAW_SANDBOX and SANDBOX_NAME to the same value in .bashrc.

Expected behavior

A single env var should be used consistently across all scripts, or start-services.sh should export SANDBOX_NAME to child processes.

Activity

  1. brianwtaylor commented on Mar 17, 2026

    @brianwtaylor
    Contributor

    PR #222 propagates SANDBOX_NAME from start-services.sh to the Telegram bridge subprocess, fixing the env var mismatch.

    -BT

  2. added
    platform: ubuntu
    integration: telegram
    on Mar 18, 2026
  3. self-assigned this
    on Mar 18, 2026
  4. added
    area: integrations
    on Nov 17, 2026
  5. added theissue type on Nov 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area: integrationsintegration: telegramplatform: ubuntu

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions