Skip to content

bug: webchat traces missing — only WhatsApp appears in Traces tab #11

@maxdraki

Description

@maxdraki

Problem

The Traces tab only shows conversation:whatsapp entries. Conversations via webchat (OpenClaw control UI) produce no traces at all.

Expected

Every channel (whatsapp, webchat, etc.) should produce traces labelled conversation:<channel>.

Likely cause

handler.ts derives the channel name from context?.channelId. Webchat events may not populate channelId in the same way WhatsApp does — it could be undefined, empty, or use a different field name — causing the trace to be silently skipped or misfiled.

Investigation

  1. Add debug logging to handler.ts to dump the raw event context shape for webchat messages
  2. Check what field OpenClaw uses for channel identity on webchat events (channelId vs channel vs provider etc.)
  3. Verify the SKIP filter isn`t dropping webchat messages (webchat heartbeat prompts look different)

Fix

Update the channel extraction in handler.ts to handle the webchat event shape, and add conversation:webchat to the test suite.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions