[GH-ISSUE #5424] [GUI] a taken-over agent turn has one sink: a second window attaching mutes the first, and the last disconnect mutes everyone #3243

Closed
opened 2026-11-07 14:39:07 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @TheHubUser4860938 on GitHub (Nov 6, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/5424

Problem: after a page reload during an agent turn, the reloaded page finds the running turn (0.2.11's takeover) - but the turn keeps a single frame sink. Two windows on one chat fight over it: window B attaching retargets the stream and window A's transcript freezes mid-turn; when B navigates away, its disconnect handler sets the sink to a no-op and A goes silent too until someone attaches again.

Environment: Strata 0.2.11 (app and Terminal 0.2.11, Control and engine 0.1.57) · Linux x86_64 · NVIDIA RTX 4090 24 GB, 125 GB RAM · Qwen3.8-Flash-Next family

Reproduce: start a long agent turn, open the same chat in a second window (it attaches), type in the first: A's streaming stops; close/reload B: nobody receives frames (the text is not lost - written.all keeps accumulating for the next resync).
Expected: each window watching the turn receives its frames; one window leaving does not mute the others.
Actual: agent-bridge.mjs runTurnInner holds let send = onFrame; turn.reattach overwrites it, and each request's disconnect listener writes the no-op to the same send.
Reproduction status: unconfirmed static analysis (traced in the 0.2.11 code; two real windows were not run).

A per-attachment sink list (fan-out to every attached response, removal on that response's close) fits the current shape; the resync buffer already exists.

Originally created by @TheHubUser4860938 on GitHub (Nov 6, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/5424 Problem: after a page reload during an agent turn, the reloaded page finds the running turn (0.2.11's takeover) - but the turn keeps a single frame sink. Two windows on one chat fight over it: window B attaching retargets the stream and window A's transcript freezes mid-turn; when B navigates away, its disconnect handler sets the sink to a no-op and A goes silent too until someone attaches again. Environment: Strata 0.2.11 (app and Terminal 0.2.11, Control and engine 0.1.57) · Linux x86_64 · NVIDIA RTX 4090 24 GB, 125 GB RAM · Qwen3.8-Flash-Next family Reproduce: start a long agent turn, open the same chat in a second window (it attaches), type in the first: A's streaming stops; close/reload B: nobody receives frames (the text is not lost - `written.all` keeps accumulating for the next resync). Expected: each window watching the turn receives its frames; one window leaving does not mute the others. Actual: `agent-bridge.mjs` `runTurnInner` holds `let send = onFrame`; `turn.reattach` overwrites it, and each request's disconnect listener writes the no-op to the same `send`. Reproduction status: unconfirmed static analysis (traced in the 0.2.11 code; two real windows were not run). A per-attachment sink list (fan-out to every attached response, removal on that response's close) fits the current shape; the resync buffer already exists.
Author
Owner

@TheHubUser4860938 commented on GitHub (Nov 6, 2026):

Closing: unconfirmed static analysis. The single send sink and the disconnect handlers are traced in agent-bridge.mjs, but two real windows on one chat were never run. Will reopen with a two-window reproduction when one is.

<!-- gh-comment-id:6691040213 --> @TheHubUser4860938 commented on GitHub (Nov 6, 2026): Closing: unconfirmed static analysis. The single `send` sink and the disconnect handlers are traced in `agent-bridge.mjs`, but two real windows on one chat were never run. Will reopen with a two-window reproduction when one is.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Niko1221/Strata#3243
No description provided.