docs(collab-web): clarify liveness recovery comment

This commit is contained in:
robomp-bot
2026-07-29 20:49:51 +09:00
parent 12d0363b75
commit d7effea3c2
2 changed files with 3 additions and 4 deletions
+1 -1
View File
@@ -4,7 +4,7 @@
### Fixed
- Fixed the guest rendering idle while the host agent is running (spinner vanishing mid-turn after a reconnect dropped `agent_start`): host `state` frames are now authoritative for liveness in both directions, and an idle report clears tool cards pinned by a dropped `tool_execution_end`.
- Fixed the guest rendering idle while the host agent is running (spinner vanishing mid-turn after a reconnect dropped `agent_start`): host `state` frames are now authoritative for liveness in both directions, and an idle report clears tool cards pinned by a dropped `tool_execution_end` ([#6990](https://github.com/can1357/oh-my-pi/pull/6990) by [@metaphorics](https://github.com/metaphorics)).
## [17.1.0] - 2026-07-24
+2 -3
View File
@@ -336,9 +336,8 @@ export class GuestClient {
this.#state = frame.state;
// Host state is authoritative for liveness in both directions: the
// payload is built at fire time, so `isStreaming` is never stale.
// This is the only path that recovers a stuck-idle guest — a dropped
// `agent_start` (most often a mid-stream reconnect) otherwise leaves
// `#working` false forever, since nothing else sets it true.
// This covers a connected guest that misses the discrete `agent_start`
// without receiving a new `welcome` (for example, mid-stream).
this.#working = frame.state.isStreaming;
if (!frame.state.isStreaming) {
// Host idle implies no tool can be running, so clear any card