@cocorograph/hub-agent 0.8.106 → 0.8.107

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cocorograph/hub-agent",
3
- "version": "0.8.106",
3
+ "version": "0.8.107",
4
4
  "description": "Hub Hosted Cockpit のローカル常駐 agent。Hub と outbound WSS で接続し、ローカルの Claude / Codex チャットと tmux セッションを中継する。",
5
5
  "type": "module",
6
6
  "license": "UNLICENSED",
@@ -2343,6 +2343,13 @@ export class ClaudeStreamSession {
2343
2343
  // 証跡で、前ターンの遅延イベントでは絶対に立たない。これを観測した時点で、
2344
2344
  // 前ターン由来の遅延 idle はもう届かない (順序保証) のでガードを解除できる。
2345
2345
  if (isSessionRunningEvent(msg)) {
2346
+ if (!this._busy && !this._closed) {
2347
+ // SDK が通知などから自ら開始したターンも、既存の終端処理で畳めるようにする。
2348
+ this._beginTurnTexts("", false, "sdk-initiated")
2349
+ this._busy = true
2350
+ this._turnSettled = false
2351
+ this._turnSeq += 1
2352
+ }
2346
2353
  this._turnRunningSeen = true
2347
2354
  this._clearStaleIdleGuard()
2348
2355
  }