Skip to content

🐛 scripts/package-mac-app.sh: Smoke test returns exit code 1 #317

@YuriNachos

Description

@YuriNachos

GitHub Issue: Smoke test returns exit code 1

Title

🐛 scripts/package-mac-app.sh: Smoke test returns exit code 1 (even with || true)

Description

The smoke test in scripts/package-mac-app.sh (line 258) returns exit code 1:

CLAWDBOT_SMOKE_QR=1 "$RELAY_OUT" >/dev/null || true

Even though || true is added to suppress the error, the script logs:

🎿 Exit code: 1
📡 clawdbot 2026.1.5-3 — Send, receive, and auto-reply on WhatsApp (web) and Telegram (bot).
🏺️ Это баг — smoke test возвращает exit code 1.

Root Cause

The CLAWDBOT_SMOKE_QR argument handling was removed from the CLI, but the smoke test call remains in the build script. The bundled relay doesn't recognize the CLAWDBOT_SMOKE_QR environment variable, causing it to fail with exit code 1.

Suggested Fix

Option 1: Remove the smoke test entirely

Delete lines 256-258 from scripts/package-mac-app.sh:

- echo "🧪 Smoke testing bundled relay QR modules"
- CLAWDBOT_SMOKE_QR=1 "$RELAY_OUT" >/dev/null || true

Option 2: Replace with proper health check

If health checking is needed, use a different approach:

echo "🧪 Health checking bundled relay..."
"$RELAY_OUT" --version >/dev/null || {
    echo "❌ Relay health check failed"
    exit 1
}

Environment

  • Clawdbot version: 2026.1.5-3
  • File: scripts/package-mac-app.sh (line 258)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething 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