@each1024/pi-mini-mode 2.0.8 → 2.0.9

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.
@@ -1039,7 +1039,8 @@ export function minimalOutputComponent(theme: ExtensionContext["ui"]["theme"], g
1039
1039
  const title = entry.title;
1040
1040
  const text = title.split(/\r?\n/).find(line => line.trim())?.replace(/\s+/g, " ").trim() ?? "";
1041
1041
  const split = text.indexOf(" ");
1042
- const label = split < 0 ? text : text.slice(0, split);
1042
+ const noThinkingBody = entry.thinking && !stripVTControlCharacters(entry.detail).trim();
1043
+ const label = noThinkingBody ? "Progress" : split < 0 ? text : text.slice(0, split);
1043
1044
  const body = split < 0 ? "" : text.slice(split + 1);
1044
1045
  const activeThinking = !!entry.activeThinking;
1045
1046
  const elapsed = entry.thinking ? formatThinkingElapsed(turn, entry.processIndex, activeThinking) : "";
@@ -1076,7 +1077,10 @@ export function minimalOutputComponent(theme: ExtensionContext["ui"]["theme"], g
1076
1077
  const reuse = activeThinking && cached?.text && cached.width === available && cached.rows === previewRows && now - cached.updatedAt < 350;
1077
1078
  const display = reuse ? cached.text : thinkingPreview(entry.detail, available, previewRows);
1078
1079
  if (!reuse) thinkingPreviews.set(entry.id, { text: display, width: available, rows: previewRows, updatedAt: now });
1079
- const fallback = activeThinking ? "等待模型返回思考内容" : "模型未提供可显示的思考内容";
1080
+ const recent = entries.slice(0, entries.indexOf(entry)).reverse().find(candidate => !candidate.thinking && candidate.title.trim());
1081
+ const activity = recent ? recent.title.startsWith("Output ") ? `最近说明:${recent.detail}` : `最近操作:${recent.title}` : "";
1082
+ const fallback = activity ? thinkingPreview(activity, available, previewRows)
1083
+ : activeThinking ? "模型已开始推理,尚未返回可显示摘要" : "推理已结束,本次未返回可显示摘要";
1080
1084
  const rows = new Text(display || fallback, 0, 0).render(Math.max(1, available)).slice(0, open ? 1 : 2);
1081
1085
  const color = activeThinking ? "accent" : "muted";
1082
1086
  lines.push(bandHeading(truncateToWidth(prefix + theme.fg(color, rows[0] ?? ""), width, ""), open));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@each1024/pi-mini-mode",
3
- "version": "2.0.8",
3
+ "version": "2.0.9",
4
4
  "description": "A compact Pi footer with live usage metrics, theme-aware settings previews, and configurable progress bars.",
5
5
  "type": "module",
6
6
  "scripts": {