#8661·omnigent

[Bug] REPL shows "streaming…" forever when a turn finishes during a /stream reconnect

Author: GirishS2093Created Sep 30, 2026Updated Oct 1, 2026
LabelsBugP2-mediumtriagedcomp:tuivalidated:likely_repro

Description

The REPL's _stream_pump reconnects /v1/sessions/{id}/stream after any transport error, but the endpoint does not replay history (the client SDK's own docstring says callers must "reconcile via get"), and the pump never reconciles. Against a workspace-hosted server the stream is cut on a fixed ~5-minute cadence (SSE transport interrupted, reconnecting at 14:24:13, 14:29:15, 14:34:17, … for as long as the session is open). When a parent's final autonomous turn (after a sub-agent completes) lands in one of those gaps, its output never renders and the status bar keeps "streaming… NNNNs / state: running", although the server and the web UI show the session idle with the full summary. send() has a 1 s snapshot fallback, but autonomous turns aren't covered by it.

Steps to reproduce

  1. Interactive omnigent run <orchestrator> --server <hosted server> with sub-agents; give it a task that runs longer than ~5 minutes.
  2. When the parent's last turn completes near a reconnect, the REPL never prints its final message and never returns to ready. The CLI log shows the reconnect at that moment.

Version: 0.17.0.dev0 · Harness: Claude · Mode: SDK · Platform: Windows (client-side logic, not OS-specific).

Reported by Sai Girish S (@GirishS2093).