中文
基于 v0.16.0..v0.17.0 的提交整理。
npm install -g @agegr/pi-web@latest新增
- Agents 条:主聊天区显示子 Agent 或侧聊时,工具栏下方出现一行,列出主 Agent 和同一家族的所有成员,高亮当前所在的一个,运行中的显示转圈,点一下即可切换;「主 Agent」始终固定在最左。在切换器里选中一行会直接关闭切换器、交给这一条。右端的锁可以让它在主 Agent 上也一直显示(按浏览器记住)。(#1681, 1eb21f7)
- 搜索覆盖侧聊:侧聊里自己新增的内容现在能搜到(从父会话继承的部分只在父会话中命中);点开结果会打开父会话,并在右侧面板切到那个侧聊。(#1689,感谢 fallleave001)
- 单个上传文件可用满 100MB:去掉每个文件 25MB 的上限,只保留整次请求 100MB 的限制;大文件改为异步写入,不再拖慢其他请求。(bae035e)
修复
session_start弹对话框的扩展不再卡死新会话:扩展在session_start里调用ctx.ui.confirm/select/input/editor时,新会话现在能正常显示对话框并继续,与 pi TUI 一致。(#1682)- 扩展唤醒的回复不再被折叠:扩展在空闲时发消息触发新一轮(如 pi-background-bash 的完成通知),新回复会作为单独一轮显示,上一轮的回答不再被收进 Process details。(#1687,感谢 librola)
- MCP:Settings › MCP 里测试某个服务器连接成功后,持有它且处于失败状态的会话会重新注册它。(#1684,感谢 Epiphanye)
- 完成提示音只响一次:同一浏览器开着多个页面时,一次完成不再响多次。(#1690)
- 安全与项目信任:
- Windows 上打开 PowerShell 开关后,agent 的
powershell工具不再拿到 Pi Web 自身的环境变量(PORT、NODE_ENV、NEXT_*、PI_WEB_PASSWORD),与 bash 工具一致。(#1676,感谢 Shani Singh) - 技能安装、更新、搜索所调用的
npx同样清理这些环境变量。(#1686,感谢 Epiphanye) - 项目里的子 Agent 配置(
.pi/agents、.agents/agents)只在受信任的文件夹中加载。(#1685,感谢 Shani Singh) - Settings › Models 的 enabledModels 遵循项目信任:未受信任项目的
.pi/settings.json不再接管列表。(#1675,感谢 Shani Singh)
- Windows 上打开 PowerShell 开关后,agent 的
- 带 BOM 或为空的
auth.json/settings.json现在与 pi 一样能读取,保存 API key、退出登录和设置开关不再报错。(#1677,感谢 Shani Singh) - 大量小问题修复,涉及文件预览与上传、Git diff、Markdown 流式渲染、扩展按键与输入法、剪贴板、通知语言、IPv6 下自动打开浏览器等。(#1636–#1672,感谢 zs)
改进
- 设置页和聊天中去掉重复的说明文字,同一件事只说一次。(dc18951)
内部调整
- 文档:通过反向代理启用 HTTP/2;Docker 可选环境变量说明;翻译版 README 与英文版同步。(#1680;#1673,感谢 zs)
- 发布 npm 包
@agegr/pi-web@0.17.0和镜像ghcr.io/agegr/pi-web:0.17.0。
English
Prepared from commits in v0.16.0..v0.17.0.
npm install -g @agegr/pi-web@latestAdded
- Agents strip: while the main chat shows a subagent or a side chat, a row under the chat toolbar names the main agent and every family member, highlights the current one and spins the running ones; a chip switches to it. The main agent stays pinned at the left. Picking a row in the switcher closes it and hands over to the strip, and a padlock at its right end keeps it on the main agent too (remembered per browser). (#1681, 1eb21f7)
- Search covers side chats: what a side chat added on its own is now searchable (inherited history matches only in the parent); picking the hit opens the parent with that side chat in its right panel. (#1689, thanks fallleave001)
- One uploaded file can use the whole 100MB limit: the 25MB per-file cap is gone, leaving the 100MB per-request limit; large files are written asynchronously so they no longer hold up other requests. (bae035e)
Fixed
- An extension whose
session_startasks a dialog no longer hangs a new session:ctx.ui.confirm/select/input/editorinsession_startnow shows and the session starts, as in pi's TUI. (#1682) - A reply an extension wakes the session for is no longer folded away: when an extension starts a run while idle (pi-background-bash's completion, for example), the new reply starts its own turn and the previous answer stays out of Process details. (#1687, thanks librola)
- MCP: a Settings › MCP Test that connects re-registers that server in sessions holding it as failed. (#1684, thanks Epiphanye)
- The completion chime rings once across all of a browser's open pages. (#1690)
- Security and project trust:
- With the Windows PowerShell switch on, the agent's
powershelltool no longer receives Pi Web's own environment (PORT,NODE_ENV,NEXT_*,PI_WEB_PASSWORD), matching the bash tool. (#1676, thanks Shani Singh) - The
npxchildren behind skill install, update and search get the same scrubbed environment. (#1686, thanks Epiphanye) - Project subagent profiles (
.pi/agents,.agents/agents) load only in a trusted folder. (#1685, thanks Shani Singh) - Settings › Models' enabledModels honors project trust: an untrusted project's
.pi/settings.jsonno longer takes over the list. (#1675, thanks Shani Singh)
- With the Windows PowerShell switch on, the agent's
auth.json/settings.jsonwith a BOM or empty are read as pi reads them, so saving an API key, signing out and the settings switches no longer fail. (#1677, thanks Shani Singh)- Many small fixes across file previews and uploads, Git diffs, streaming Markdown, extension keys and IME, the clipboard, notification locale, and opening the browser on IPv6 binds. (#1636–#1672, thanks zs)
Improved
- Settings and the chat drop repeated explanations, saying each fact once. (dc18951)