#TUI Connection

1 messages Β· Page 1 of 1 (latest)

molten narwhal
#

clawdbot git:(main) βœ— clawdbot tui

🦞 Clawdbot 2026.1.10 (b7a11b7) β€” WhatsApp Business, but without the business.

clawdbot tui - ws://127.0.0.1:18789 - agent main - session main
connecting | idle
agent main | session main | unknown | think off | verbose off | tokens ?
──────────────────────────────────────────────────────────────────────────────────────────────────────────

──────────────────────────────────────────────────────────────────────────────────────────────────────────gateway connect failed: Error: invalid connect params: data/client must have required property 'id'; data/
gateway disconnected: invalid connect params: data/client must have required property 'id'; data/client
must NOT have additional properties; d | idle
agent main | session main | unknown | think off | verbose off | tokens ?
──────────────────────────────────────────────────────────────────────────────────────────────────────────

──────────────────────────────────────────────────────────────────────────────────────────────────────────gateway connect failed: Error: invalid connect params: data/client must have required property 'id'; data/client must NOT have additional properties; data/client/mode must be equal to constant; data/client/mode must be equal to constant; data/client/mode must be equal to constant; data/client/mode must be equal to constant; data/client/mode must be equal to constant; data/client/mode must be equal to constant; data/client/mode must match a schema in anyOf
gateway connect failed: Error: invalid connect params: data/client must have required property 'id'; data/
must NOT have additional properties; d | press ctrl+c again to exit
agent main | session main | unknown | think off | verbose off | tokens ?

whole brambleBOT
# molten narwhal clawdbot git:(main) βœ— clawdbot tui 🦞 Clawdbot 2026.1.10 (b7a11b7) β€” WhatsApp B...

Based on my investigation, this is a version mismatch issue between the TUI and Gateway:

The problem:

  • You're running clawdbot tui from the source repo (version 2026.1.10, commit b7a11b7)
  • But the Gateway is running from the installed version at /opt/clawdbot (version 2026.1.11-4, commit ca0f8ed8e)

These versions have different schema structures:

  • Source (2026.1.10): Schema was recently split into multiple files in src/gateway/protocol/schema/
  • Installed (2026.1.11-4): Still uses the old single-file schema at src/gateway/protocol/schema.ts

Solutions:

  1. Run TUI from the installed version:
    clawdbot tui
    
    (This uses /opt/clawdbot/dist/entry.js)
#
  1. Or restart the Gateway from source to match:

    # Stop the current gateway first
    systemctl --user stop clawdbot-gateway  # or pkill -f clawdbot gateway
    
    # Run gateway from source
    cd ~/clawdbot-ref && pnpm clawdbot gateway
    
  2. Or update the installed version to match source:

    cd /opt/clawdbot && git pull && pnpm install && pnpm build
    

The validation error occurs because the Gateway's schema expects a specific client object structure that doesn't match what the TUI from the other version is sending.

molten narwhal
#

It was indeed a mismatch πŸ™ƒ