@cocorograph/hub-agent 0.6.97 → 0.6.98

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/state.mjs +6 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cocorograph/hub-agent",
3
- "version": "0.6.97",
3
+ "version": "0.6.98",
4
4
  "description": "Hub Hosted Cockpit のローカル常駐 agent。Hub と outbound WSS で接続し、ローカルの tmux/pty を中継する。",
5
5
  "type": "module",
6
6
  "license": "UNLICENSED",
package/src/state.mjs CHANGED
@@ -169,7 +169,12 @@ function _belowIsOnlyChrome(lines, i) {
169
169
  for (let j = i + 1; j < lines.length; j++) {
170
170
  const ln = lines[j]
171
171
  if (ln.trim() === "") continue // 空行
172
- if (/^\s*─{3,}\s*$/.test(ln)) continue // 入力欄の罫線
172
+ // 入力欄の罫線。純粋なダッシュ列 (────) に加え、ラベル付き罫線 (────── ultracode ─ /
173
+ // ──── plan mode ─ 等、effort/モード表示が入る入力欄上端) も chrome 扱いにする。末尾 $ を
174
+ // 外し「行頭が 3+ ボックス罫線文字」で判定する。実機 (2026-06-19): ultracode 表示で入力欄上端が
175
+ // "────── ultracode ─" になり純ダッシュ判定を外れ、これを本文行と誤認 → ライブスピナーを
176
+ // 「本文の引用」と誤判定 → 生成中なのに status=waiting に落ちる事象を確認 (三点リーダー消失の実主因)。
177
+ if (/^\s*─{3,}/.test(ln)) continue
173
178
  if (/^\s*[❯>]/.test(ln)) continue // 入力プロンプト
174
179
  if (/^\s*⎿/.test(ln)) continue // tips / ツリー装飾行
175
180
  if (/^\s{4,}\S/.test(ln)) continue // tips 折り返し等の字下げ継続