Skip to content

webchat: single chat.send creates 3-4 duplicate user messages in session JSONL #46005

Closed as not planned

Description

@0xNatoshi

Bug

A single chat.send RPC via the webchat channel creates 3-4 duplicate user messages in the session JSONL file. Each duplicate has a unique message ID and different timestamps (10-40s apart), suggesting the gateway processes the same inbound message multiple times rather than it being a client-side retry.

Repro

  1. Connect a native macOS app (or the gateway dashboard) via webchat WebSocket
  2. Send one message via chat.send RPC with an idempotencyKey
  3. Check the session JSONL: the user message appears 3-4 times

Evidence

grep "documenter ce bug" session.jsonl | jq -c "{id, parentId, timestamp}"
{"id":"8cfa68f8","parentId":"ea22fd91","timestamp":"2026-03-14T10:44:10.682Z"}
{"id":"a1b28ab6","parentId":"68307c81","timestamp":"2026-03-14T10:44:22.368Z"}
{"id":"a62bfc33","parentId":"aeb1eba4","timestamp":"2026-03-14T10:44:47.593Z"}
{"id":"89ad76ee","parentId":"a62bfc33","timestamp":"2026-03-14T10:44:53.092Z"}

4 entries with unique IDs for 1 sent message. The idempotencyKey provided in chat.send params is not used for deduplication.

Environment

  • OpenClaw 2026.3.13
  • Channel: webchat (native macOS app + gateway dashboard both affected)
  • Single WebSocket connection active
  • Not a client issue: app sends one chat.send with sendingLock guard + idempotencyKey

Notes

Activity

  1. clawsweeper commented on Apr 26, 2026

    @clawsweeper
    Contributor

    Closing this as duplicate or superseded after Codex automated review.

    #46005 is superseded by the dedicated open draft PR #52903, which explicitly tracks the same model-fallback retry duplicate-user-message problem and says it fixes #46005. Current main has gateway same-idempotency handling, but the session-manager retry dedupe itself is not separately implemented on main, so this should close as superseded rather than implemented.

    What I checked:

    So I’m closing this here and keeping the remaining discussion on the canonical linked item.

    Codex Review notes: model gpt-5.5, reasoning high; reviewed against 28497515fe1e.

  2. locked as resolved and limited conversation to collaborators on Apr 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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