github agegr/pi-web v0.14.2

3 hours ago

中文

基于 v0.14.1..v0.14.2 的提交整理。

npm install -g @agegr/pi-web@latest

新增

  • 模型选择器可切换「scoped | all」:设置了 enabledModels 时,聊天框的模型选择器顶部多出一行「scoped | all」,与 pi 的 /model 一样默认显示限定范围内的模型,点按或在筛选框里按 Tab 可切换到全部模型。选中范围外的模型会用于当前会话(新会话也可以从它开始),不会成为默认模型。(#1486, #1503,感谢 Salman Abdurrahman)
  • 在 Agents 列表里删除侧聊:侧聊行的标签切换按钮旁多了删除按钮,确认后只删除这个侧聊,主会话和其他侧聊保留;删除的正是主聊天里打开的侧聊时回到它的主会话。(#1507,感谢 谢凯文;48a158b)
  • 手机上的设置逐级全屏显示:手机上打开 Settings 先显示分区列表,再进入分区、再进入某一项的详情,每级全屏,标题栏有返回按钮和当前级别名称并居中显示;系统返回键返回上一级,切换时有滑动动画(开启减少动态效果时不动)。(9afc508, 1420b81)
  • 手机上更好点的控件:窄屏手机上 Agents 按钮留在「更多」按钮左边,不再收进菜单;手机和触屏上顶栏、侧栏工具栏和文件面板标签栏高 44px,输入框的控件行 44px,触屏上文件树行高 36px;Settings 和单独打开的配置面板在手机上全屏。(57078bb)

修复

  • Windows 上的终端默认启动 PowerShell:原生 Windows 服务器上新建的终端总是 cmd.exe,现在按 pi 的 powershell 工具的方式查找,依次是 PowerShell 7、Windows PowerShell,两者都没有时才用 cmd。(#1394, #1508)
  • 归档视图里折叠所有项目后,不再在项目标题上方显示「没有已归档的会话」。(#1505,感谢 谢凯文)

内部调整

  • 升级 pi 到 1.5.0,新增固定依赖 @earendil-works/pi-schema;MCP 的 oauth.clientRegistration 支持 pi 的新默认值 "auto",粘贴的 pi mcp add 命令会读取 --oauth-client-registration;已保存的「不信任」也作用于无需信任的目录,与 CLI 一致。(ff8de36)
  • 升级 Next.js 到 16.4.4、undici 到 8.12.3,并更新锁文件中的 zod 和 dompurify,npm audit --omit=dev 不再有告警。(#1506, #1509)
  • 发布流程合并为一个 Release 工作流(npm 和 Docker 镜像两个任务),demo 只在 demo/ 或 package.json 变化时部署。(2bf9c6e)
  • 发布 npm 包 @agegr/pi-web@0.14.2 和镜像 ghcr.io/agegr/pi-web:0.14.2。

English

Prepared from commits in v0.14.1..v0.14.2.

npm install -g @agegr/pi-web@latest

Added

  • Scoped | all in the model selector: while enabledModels narrows the list, the chat's model selector shows a "scoped | all" row, as pi's /model does. It opens on the scoped models; a tap, or Tab in the filter field, switches to every model. A model picked outside the scope applies to the session (a new session can start on it too) and never becomes the default. (#1486, #1503, thanks Salman Abdurrahman)
  • Delete a side chat from the Agents switcher: a side chat's row gets a Delete beside its tab toggle. After the confirmation only that side chat goes; the parent and its other side chats stay, and deleting the side chat open in the main chat goes back to its parent. (#1507, thanks 谢凯文; 48a158b)
  • Settings one level at a time on a phone: a phone's Settings opens on its list of sections, then a section's list, then a row's detail, each full screen, under a header with Back and the level's centered name. The system Back goes up one level, and levels slide in (not under reduced motion). (9afc508, 1420b81)
  • Touch-sized controls on a phone: a narrow phone keeps the Agents button left of More instead of folding it into that menu; the top bar, the sidebar's toolbar row and the file panel's tab bar are 44px on a phone or touch screen, the composer's controls row 44px, file tree rows 36px on touch; Settings and a config panel opened on its own fill the screen. (57078bb)

Fixed

  • Terminals on Windows start PowerShell: a new terminal on a native Windows server always started cmd.exe. It now finds PowerShell as pi's powershell tool does (PowerShell 7, then Windows PowerShell) and falls back to cmd only without either. (#1394, #1508)
  • Folding every project in the archive view no longer shows "No archived sessions" above their headers. (#1505, thanks 谢凯文)

Internal

  • Upgraded pi to 1.5.0, pinning the new @earendil-works/pi-schema. MCP's oauth.clientRegistration accepts pi's new default "auto", and pasted pi mcp add commands read --oauth-client-registration; a saved "do not trust" now also decides a folder that needs no trust, as in the CLI. (ff8de36)
  • Upgraded Next.js to 16.4.4 and undici to 8.12.3, with zod and dompurify updated in the lockfile; npm audit --omit=dev is clean. (#1506, #1509)
  • One Release workflow per tag (npm and container jobs); the demo deploys only when demo/ or package.json changes. (2bf9c6e)
  • Published npm package @agegr/pi-web@0.14.2 and image ghcr.io/agegr/pi-web:0.14.2.

Don't miss a new pi-web release

NewReleases is sending notifications on new releases.