Skip to content

[Bug]: webchat session context lost after Gateway restart (SIGUSR1) #56682

Description

@lyk-gif

Description

When the Gateway restarts (via SIGUSR1 / config.patch), the webchat channel loses its session context entirely. A new conversation is started instead of resuming the previous one.

Expected Behavior

After a hot restart (SIGUSR1), the webchat session should either:

  • Resume the existing conversation context, or
  • At minimum, re-inject the session history so the agent can continue without losing context

Actual Behavior

After restart, webchat opens a brand new session with no memory of previous conversation. The user has to re-explain context from scratch.

Notes

  • Other channels (QQBot, Telegram, etc.) can recover via platform-side message history
  • webchat has no such mechanism, making it uniquely affected
  • SIGUSR1 hot restart should ideally preserve in-process session state

Environment

  • OpenClaw version: 2026.3.24
  • Channel: webchat
  • OS: Linux (Ubuntu)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions