NemoClaw icon indicating copy to clipboard operation
NemoClaw copied to clipboard

[Ubuntu 26.04][Agent&Skills] Google Chat: pairing approve does not take effect until gateway restart; bot stays silent to approved sender

Open hulynn opened this issue 3 months ago • 1 comments

Description

On an OpenClaw sandbox with the experimental Google Chat channel and no DM allowlist (manual pairing mode), approving a paired sender with openclaw pairing approve googlechat {code} writes commands.ownerAllowFrom into the sandbox openclaw.json but has NO effect on the already-running gateway. The approved sender's DMs keep being treated as non-owner (message __openclaw.senderIsOwner=false), the agent emits the silent-reply token NO_REPLY, and the bot never replies. The approval only takes effect after the gateway is manually restarted, after which senderIsOwner becomes true. The managed sandbox is generated with gateway.reload.mode=off, so live config changes made by pairing approve are never reloaded.

Platform scope: Reproduced on Ubuntu 26.04 x86_64 (NemoClaw v0.0.104) only; other platforms not tested. Regression: Unknown — this specific pairing-approve reload behavior was not tested on earlier versions.

Environment

Device:        Ubuntu 26.04 x86_64 server
OS:            Ubuntu 26.04 LTS
Architecture:  x86_64
Node.js:       v22.23.1
npm:           10.9.8
Docker:        29.1.3
OpenShell CLI: 0.0.85
NemoClaw:      v0.0.104
OpenClaw:      2026.7.1

Steps to Reproduce

  1. Onboard an OpenClaw sandbox (any inference provider).
  2. Add the Google Chat channel WITHOUT an allowlist so it uses manual pairing:
    nemoclaw {sandbox} channels add googlechat
    
    (provide GOOGLECHAT_SERVICE_ACCOUNT, GOOGLECHAT_AUDIENCE, GOOGLECHAT_APP_PRINCIPAL; leave GOOGLECHAT_ALLOWED_USERS empty), then let it rebuild.
  3. From the Google account that will use the bot, DM it. The bot replies "access not configured" and returns a Pairing code.
  4. Approve it:
    nemoclaw {sandbox} exec -- openclaw pairing approve googlechat {code}
    
    Output confirms: "Approved googlechat sender users/{numeric}" and "Command owner configured".
  5. DM the bot again from the same account.

Expected Result

After pairing approve, the approved sender's next DM is handled as an authorized sender and the agent replies normally (the documented approve → reply flow works without any extra manual step).

Actual Result

The bot never replies. The sandbox agent transcript shows the inbound message tagged senderIsOwner=false and the assistant output is the literal token NO_REPLY, even though commands.ownerAllowFrom in openclaw.json already contains the approved sender. Only after manually restarting the gateway does the next DM show senderIsOwner=true and get a real reply.

Running sandbox config confirms the gateway will not hot-reload:

gateway.reload = { "mode": "off" }
commands.ownerAllowFrom = [ "googlechat:users/{numeric}" ]

Logs

Agent session transcript (/sandbox/.openclaw/agents/main/sessions/{id}.jsonl), before restart:
  user      : {"content":"...","__openclaw":{"senderIsOwner":false}}
  assistant : {"content":[{"type":"text","text":"NO_REPLY"}],"usage":{"output":3},"stopReason":"stop"}

After manually restarting the gateway, same sender:
  user      : {"content":"...","__openclaw":{"senderIsOwner":true}}

hulynn avatar Aug 07 '26 11:08 hulynn

Root cause

Google Chat pins gateway.reload.mode=off so OpenClaw’s post-boot config self-write does not drop the webhook route. Pairing approve writes commands.ownerAllowFrom, but the running gateway never reloads it until restart.

Proposed fix

After a successful openclaw pairing approve googlechat …, restart the gateway (same pattern as restore pairing #7431). Do not re-enable hot reload — that brings back the webhook drop.

Ask

Can I get assigned to implement this?

sdshah09 avatar Aug 11 '26 02:08 sdshah09