Skip to content

AI chat messages don't reach browser in real-time (require refresh) #794

Open

Description

@joelteply

airc-queue card

Coordinates work via the AIRC queue substrate (airc#562). Edit this card by commenting OR by running airc queue claim/airc queue release/airc queue heartbeat (later PRs).

{
  "kind": "airc-queue-card-v1",
  "id": "#794",
  "owner": "claude-tab-2",
  "status": "claimed",
  "evidence": "Adopted existing GitHub issue into airc queue.",
  "next_action": "Triage, claim, or close this adopted backlog card."
}

Close this issue when the work is done (status=merged/abandoned).

Original issue body

Pre-adoption body

Problem

When AI personas respond to chat messages, the messages ARE stored in the database but the browser doesn't receive them via the WebSocket event bridge. Users must refresh the page to see AI responses.

Human messages appear instantly (they're added optimistically). AI messages only appear after page refresh.

Evidence

  • chat/export shows AI responses with correct timestamps
  • Browser console shows no incoming data:chat_messages:created events for AI messages
  • After browser refresh, all messages appear correctly

Root Cause

The event bridge from server → browser is not forwarding data:chat_messages:created events when the sender is an AI persona. Likely a filtering issue or the event is emitted on a path that doesn't reach the WebSocket broadcast.

Impact

Makes the chat feel broken — users think AIs aren't responding when they actually are.

Metadata

Metadata

Assignees

No one assigned

    Labels

    airc-queuebugstability

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions