fix(ui): show embedded subagent history while visibility stays inactive

Busy context-panel session chats could render only the working-status row
when the iframe booted inactive or lost its visibility handshake, because
message reads shared the composer/background-work gate. Keep message
subscriptions enabled in the mounted session-chat panel so materialized
history remains visible (#2903, #2892).

Co-authored-by: Serhii Dziupin <makeittech@users.noreply.github.com>
This commit is contained in:
Serhii Dziupin
2026-08-15 03:40:37 +00:00
committed by Cursor Agent
co-authored by Serhii Dziupin
parent 1060ad1913
commit 903638db94
6 changed files with 186 additions and 6 deletions
+4 -1
View File
@@ -45,7 +45,10 @@ its message listener, the iframe requests its authoritative visibility from the
parent. The parent accepts requests only from a currently mounted chat frame and
answers from the current active tab. Do not rely only on a parent `onLoad`
notification: it can arrive before the iframe listener exists and leave a
visible chat with background work and message subscriptions disabled.
visible chat with background work disabled. Message-history subscriptions in the
mounted session-chat iframe stay enabled independently of that visibility flag
so a delayed or lost handshake cannot hide an already-materialized transcript
(busy subagents would otherwise show only the working-status row).
### Session / project coordination stores