mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[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
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#3243
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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.allkeeps 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.mjsrunTurnInnerholdslet send = onFrame;turn.reattachoverwrites it, and each request's disconnect listener writes the no-op to the samesend.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.
@TheHubUser4860938 commented on GitHub (Nov 6, 2026):
Closing: unconfirmed static analysis. The single
sendsink and the disconnect handlers are traced inagent-bridge.mjs, but two real windows on one chat were never run. Will reopen with a two-window reproduction when one is.