Skip to content

[Bug]:Gateway token mismatch after clicking "New Session" then immediately "Stop" #32839

@Johnson19900110

Description

@Johnson19900110

Bug type

Behavior bug (incorrect output/state without crash)

Summary

Gateway token mismatch after clicking "New Session" then immediately "Stop"

Steps to reproduce

  1. Click "New Session" in the webchat UI
  2. Immediately click "Stop" before the session finishes loading

Expected behavior

Gateway token remains in sync; connection recovers gracefully.

Actual behavior

Gateway service token becomes out of sync with openclaw.json. Subsequent connections fail with:

run error: Unexpected non-whitespace character after JSON at position 42 (line 1 column 43)

And gateway logs show:

gateway token mismatch (set gateway.remote.token to match gateway.auth.token)

OpenClaw version

2026.3.1

Operating system

macOS (Darwin 23.5.0, arm64)

Install method

No response

Logs, screenshots, and evidence

Impact and severity

No response

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingbug:behaviorIncorrect behavior without a crash

    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