pi-one-ui 0.9.1 → 0.9.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.
package/CHANGELOG.md CHANGED
@@ -6,6 +6,17 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
+ ## [0.9.2] - 2026-10-22
10
+
11
+ ### Fixed
12
+
13
+ - Skip `before_agent_start` events that carry no `prompt` on Pi 1.2 and later. Pi also fires that event for runs started by `pi.sendMessage(..., { triggerTurn: true })`, and those `custom` events carry the starting message instead of a user prompt; the subagent mention handler and the session reference handler no longer throw a `TypeError` on such runs, and user prompts keep their existing behavior.
14
+
15
+ ### Migration
16
+
17
+ - No configuration migration is required. Subagent mentions and session references keep working for user prompts, and runs started by extension messages are ignored by both handlers.
18
+ - For an unpinned npm installation, run `pi update npm:pi-one-ui`; for an existing version pin, run `pi install npm:pi-one-ui@0.9.2`. Fully exit and restart Pi after updating the package.
19
+
9
20
  ## [0.9.1] - 2026-10-05
10
21
 
11
22
  ### Changed
@@ -22,6 +33,12 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
22
33
  - The `/oneui` settings section previously labeled `Context` is now `Transcript`; the `/context` command and the Context Inspector keep their names. No configuration key or stored value changes.
23
34
  - For an unpinned npm installation, run `pi update npm:pi-one-ui`; for an existing version pin, run `pi install npm:pi-one-ui@0.9.1`. Fully exit and restart Pi after updating the package.
24
35
 
36
+ ### Release verification
37
+
38
+ - Release source: [`85d237f`](https://github.com/kerolt/pi-one-ui/commit/85d237ff9d34d05f4b701a394db0fc714cc12058). [CI](https://github.com/kerolt/pi-one-ui/actions/runs/37261402476) and [Publish](https://github.com/kerolt/pi-one-ui/actions/runs/37261402474) completed successfully; local `npm run verify` passed 1,196 tests across 70 files, and `npm run pack:check` confirmed 125 package files.
39
+ - npm `latest` resolves to `0.9.1`, published `2026-10-05T04:00:02.807Z` with `gitHead` `85d237ff9d34d05f4b701a394db0fc714cc12058`, package SHA-1 `dd0030ec63e9153c23255ae8e1f91cec54de81bf`, integrity `sha512-yyJvP0V9V1T7nsR8vkPxfufd6p8dTve24xG4mgPEiRAsf8+yIiiD3l6vL2hFyuPImQS0q6hiHIN86y7epsbToQ==`, and a published provenance statement (SLSA v1, Sigstore log index [3081457148](https://search.sigstore.dev/?logIndex=3081457148)).
40
+ - Regular and fullscreen Pi TUI verification passed for the expanded pending command rendering, covering Ctrl+O expansion, mouse expansion, multi-line commands, collapsed cards, settled cards, and expanded tool groups.
41
+
25
42
  ## [0.9.0] - 2026-10-02
26
43
 
27
44
  ### Changed
@@ -245,7 +262,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
245
262
 
246
263
  - Reduced rendering lag when expanding settled tool groups by reusing cached child output.
247
264
 
248
- [Unreleased]: https://github.com/kerolt/pi-one-ui/compare/v0.9.1...HEAD
265
+ [Unreleased]: https://github.com/kerolt/pi-one-ui/compare/v0.9.2...HEAD
266
+ [0.9.2]: https://github.com/kerolt/pi-one-ui/compare/v0.9.1...v0.9.2
249
267
  [0.9.1]: https://github.com/kerolt/pi-one-ui/compare/v0.9.0...v0.9.1
250
268
  [0.9.0]: https://github.com/kerolt/pi-one-ui/compare/v0.8.0...v0.9.0
251
269
  [0.8.0]: https://github.com/kerolt/pi-one-ui/compare/v0.7.2...v0.8.0
package/README.en.md CHANGED
@@ -76,11 +76,11 @@ Then open the unified settings panel:
76
76
  /oneui
77
77
  ```
78
78
 
79
- ### Upgrading to 0.9.1
79
+ ### Upgrading to 0.9.2
80
80
 
81
- This release fixes truncated commands on expanded tool cards: a pending card now wraps the complete command against the terminal width after Ctrl+O or a mouse click, preserving line breaks in multi-line commands, while collapsed cards and settled cards keep the truncated title line and settled cards continue to list the full input in the Input section. The `/oneui` settings section previously labeled `Context` is now `Transcript`; names that refer to the model context window stay unchanged (the `/context` command, the Context Inspector, the Footer `context` segment and `context*` color keys), and no configuration key, command, or stored value changes.
81
+ This release fixes extension errors on Pi 1.2 and later: Pi also fires `before_agent_start` for runs started by `pi.sendMessage(..., { triggerTurn: true })`, and those events carry no `prompt`; the subagent mention handler and the session reference handler no longer throw a `TypeError`, and user-submitted prompts keep their existing behavior. No configuration change is required.
82
82
 
83
- Users upgrading from 0.8.x also need the 0.9.0 migration: `renderer.scrollStepLines` is gone and wheel stepping is controlled by Pi's own `fullscreenWheelScrollLines` setting in `~/.pi/agent/settings.json` (an integer such as `3`, or `"auto"`), a leftover `scrollStepLines` key is ignored and preserved on save, and the fullscreen "Back to bottom" button with its `Ctrl+End` binding is removed in favor of the official `End` shortcut and indicator.
83
+ When upgrading from 0.9.1 or earlier, the 0.9.1 rename of the `Context` settings section to `Transcript` applies; users upgrading from 0.8.x also need the 0.9.0 migration: `renderer.scrollStepLines` is gone and wheel stepping is controlled by Pi's own `fullscreenWheelScrollLines` setting in `~/.pi/agent/settings.json` (an integer such as `3`, or `"auto"`), a leftover `scrollStepLines` key is ignored and preserved on save, and the fullscreen "Back to bottom" button with its `Ctrl+End` binding is removed in favor of the official `End` shortcut and indicator.
84
84
 
85
85
  For an unpinned npm installation, run:
86
86
 
@@ -88,7 +88,7 @@ For an unpinned npm installation, run:
88
88
  pi update npm:pi-one-ui
89
89
  ```
90
90
 
91
- If your installation pins a version, run `pi install npm:pi-one-ui@0.9.1` to update the pin. Fully exit and restart Pi after updating the package.
91
+ If your installation pins a version, run `pi install npm:pi-one-ui@0.9.2` to update the pin. Fully exit and restart Pi after updating the package.
92
92
 
93
93
  ## Configuration
94
94
 
package/README.md CHANGED
@@ -76,11 +76,11 @@ pi install git:github.com/kerolt/pi-one-ui
76
76
  /oneui
77
77
  ```
78
78
 
79
- ### 升级到 0.9.1
79
+ ### 升级到 0.9.2
80
80
 
81
- 本次修复了展开工具卡后命令仍被截断的问题:正在执行(pending)的工具卡在 Ctrl+O 或鼠标点击展开后,会按终端宽度折行展示完整命令,多行命令的内嵌换行会被保留;折叠态与已结束的卡继续使用截断标题,已结束的卡仍在 Input 段展示完整输入。`/oneui` 设置面板的 `Context` 分区更名为 `Transcript`,与模型上下文占用有关的名称保持不变(`/context` 命令、Context Inspector、Footer 的 `context` 段与 `context*` 颜色键),配置键、命令与已存数据都没有变化。
81
+ 本次修复了 Pi 1.2 及之后版本上的扩展错误:Pi 会为 `pi.sendMessage(..., { triggerTurn: true })` 启动的运行同样触发 `before_agent_start`,这类事件不携带 `prompt`;Subagent 提示注入与 Session reference 两个 handler 不再抛出 `TypeError`,用户提交的提示行为保持不变。本次升级不需要修改配置。
82
82
 
83
- 从 0.8.x 升级的用户还需要执行 0.9.0 的迁移:`renderer.scrollStepLines` 已移除,滚轮步进改由 Pi 官方设置 `fullscreenWheelScrollLines` 控制(`~/.pi/agent/settings.json` 中写入整数如 `3`,或 `"auto"`),配置文件里遗留的 `scrollStepLines` 键会被忽略并保留;fullscreen 的回到底部按钮与 `Ctrl+End` 绑定已移除,请使用官方 `End` 快捷键与指示条。
83
+ 从 0.9.1 或更早版本升级时,0.9.1 的 `Context` 分区更名为 `Transcript`;从 0.8.x 升级的用户还需要执行 0.9.0 的迁移:`renderer.scrollStepLines` 已移除,滚轮步进改由 Pi 官方设置 `fullscreenWheelScrollLines` 控制(`~/.pi/agent/settings.json` 中写入整数如 `3`,或 `"auto"`),配置文件里遗留的 `scrollStepLines` 键会被忽略并保留;fullscreen 的回到底部按钮与 `Ctrl+End` 绑定已移除,请使用官方 `End` 快捷键与指示条。
84
84
 
85
85
  未固定版本的 npm 安装可执行:
86
86
 
@@ -88,7 +88,7 @@ pi install git:github.com/kerolt/pi-one-ui
88
88
  pi update npm:pi-one-ui
89
89
  ```
90
90
 
91
- 若安装时固定了版本,执行 `pi install npm:pi-one-ui@0.9.1` 更新版本指定。更新安装包后,完整退出并重启 Pi。
91
+ 若安装时固定了版本,执行 `pi install npm:pi-one-ui@0.9.2` 更新版本指定。更新安装包后,完整退出并重启 Pi。
92
92
 
93
93
  ## 配置
94
94
 
@@ -531,7 +531,10 @@ export default function sessionReferenceExtension(pi: ExtensionAPI): void {
531
531
  });
532
532
 
533
533
  pi.on("before_agent_start", async (event, ctx) => {
534
- const referenceIds = extractSessionReferenceIds(event.prompt);
534
+ // Runs started by an extension message (pi >= 1.2) carry no prompt.
535
+ const prompt =
536
+ "prompt" in event && typeof event.prompt === "string" ? event.prompt : "";
537
+ const referenceIds = extractSessionReferenceIds(prompt);
535
538
  if (referenceIds.length === 0) return;
536
539
 
537
540
  const currentSessionId = ctx.sessionManager.getSessionId();
@@ -193,7 +193,10 @@ export default function agentAutocompleteExtension(pi: ExtensionAPI): void {
193
193
  if (agents.length === 0) return;
194
194
 
195
195
  const mentions: string[] = [];
196
- for (const m of event.prompt.matchAll(AGENT_PROMPT_PATTERN)) {
196
+ // Runs started by an extension message (pi >= 1.2) carry no prompt.
197
+ const prompt =
198
+ "prompt" in event && typeof event.prompt === "string" ? event.prompt : "";
199
+ for (const m of prompt.matchAll(AGENT_PROMPT_PATTERN)) {
197
200
  const name = m[1]!;
198
201
  if (agents.some((a) => a.name === name) && !mentions.includes(name)) {
199
202
  mentions.push(name);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pi-one-ui",
3
- "version": "0.9.1",
3
+ "version": "0.9.2",
4
4
  "description": "A single, customizable Pi UI package with layout-oriented Context and Shell rendering for Pi.",
5
5
  "type": "module",
6
6
  "license": "MIT",