@cocorograph/hub-agent 0.6.14 → 0.6.15

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.6.14",
3
+ "version": "0.6.15",
4
4
  "description": "Hub Hosted Cockpit のローカル常駐 agent。Hub と outbound WSS で接続し、ローカルの tmux/pty を中継する。",
5
5
  "type": "module",
6
6
  "license": "UNLICENSED",
@@ -448,12 +448,12 @@ class ClaudeStreamSession {
448
448
  if (count === this._lastEmittedQueueCount) return
449
449
  this._lastEmittedQueueCount = count
450
450
  try {
451
+ // messages は全文を載せる。frontend は実行開始 (drain) 時にこれを user バブルへ
452
+ // 昇格させるため、ここで切り詰めると本文が欠ける。チップの省略表示は CSS 側で行う。
451
453
  this.onEvent?.({
452
454
  type: "queue_state",
453
455
  pending: count,
454
- messages: this._pendingMessages.map((p) =>
455
- typeof p === "string" && p.length > 120 ? `${p.slice(0, 120)}…` : p,
456
- ),
456
+ messages: [...this._pendingMessages],
457
457
  })
458
458
  } catch {
459
459
  /* ignore */