@cocorograph/hub-agent 0.7.1 → 0.7.2

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/main.mjs +5 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cocorograph/hub-agent",
3
- "version": "0.7.1",
3
+ "version": "0.7.2",
4
4
  "description": "Hub Hosted Cockpit のローカル常駐 agent。Hub と outbound WSS で接続し、ローカルの tmux/pty を中継する。",
5
5
  "type": "module",
6
6
  "license": "UNLICENSED",
package/src/main.mjs CHANGED
@@ -1179,6 +1179,7 @@ function startStateLoop({ client, plugins, logger, intervalMs, claudeBridge, rea
1179
1179
  prev.permission_mode !== permissionMode ||
1180
1180
  prev.stable !== stable ||
1181
1181
  prev.proc_busy !== procBusy ||
1182
+ prev.child_busy !== childBusy ||
1182
1183
  prev.stalled !== stalled
1183
1184
  ) {
1184
1185
  lastByName.set(s.session_name, {
@@ -1187,6 +1188,7 @@ function startStateLoop({ client, plugins, logger, intervalMs, claudeBridge, rea
1187
1188
  permission_mode: permissionMode,
1188
1189
  stable,
1189
1190
  proc_busy: procBusy,
1191
+ child_busy: childBusy,
1190
1192
  stalled,
1191
1193
  })
1192
1194
  // 計装 (2026-06-19, 既定 OFF=2026-06-20): 状態変化時に値を記録する。常時 info はログ肥大の
@@ -1216,6 +1218,9 @@ function startStateLoop({ client, plugins, logger, intervalMs, claudeBridge, rea
1216
1218
  permission_mode: permissionMode,
1217
1219
  stable,
1218
1220
  proc_busy: procBusy,
1221
+ // child_busy: outputActive を含まない真の子プロセス busy。frontend の shouldQueue が
1222
+ // 出力残り火 (proc_busy 残存) でアイドルなのにキューへ逃がす誤キュー (症状A) を断つために使う。
1223
+ child_busy: childBusy,
1219
1224
  stalled,
1220
1225
  })
1221
1226
  }