Skip to content

Web app shows 'Waiting for Agent Session' despite active sessions in dev mode #29

@kynoptic

Description

@kynoptic

Describe the bug
Running pnpm run dev starts the relay on port 3001 and the Next.js web app on port 3000, but the web app never receives SSE events. It displays "WAITING FOR AGENT SESSION" even when sessions are actively streaming events to the relay.

Steps to reproduce

  1. Clone the repo and run pnpm i
  2. Run pnpm run setup then pnpm run dev
  3. Start a Claude Code session in another terminal
  4. Open http://localhost:3000 — the UI shows "WAITING FOR AGENT SESSION"
  5. Verify the relay is receiving events: curl -s http://127.0.0.1:3001/events -N --max-time 2 shows SSE data

Expected behavior
The web app should connect to the relay's SSE endpoint at http://127.0.0.1:3001/events and display active sessions.

Screenshots
N/A — the "WAITING FOR AGENT SESSION" screen is the default empty state.

Environment

  • VS Code version: N/A (standalone dev mode)
  • Agent Flow version: 0.6.2
  • Node version: v25.6.1
  • OS: macOS 15.5 (Darwin 25.3.0)

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