Skip to content

Live mode starts twice on page load #317

Closed

Description

@joelteply

Problem

Navigating to /live/general creates a call, adds AI personas, then the page refreshes (hot restart signal), creating a SECOND call with another round of auto-joins.

Root cause

  1. Browser loads → LiveWidget joins → call created → AI personas auto-joined
  2. Hot restart sends browser refresh → page reloads → new join fires
  3. Stale call detection marks first call as ended (created before SERVER_START_TIME)
  4. New call created with new ID → autoJoinedCalls Set doesn't prevent duplicate (different call ID)

Fix needed

Either suppress the browser refresh when already on the correct page, or make auto-join dedup by room ID instead of call ID.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions