Skip to content

v0.18.0

Latest

Choose a tag to compare

@agegr agegr released this 20 Nov 11:44
· 1 commit to main since this release

中文

基于 v0.17.0..v0.18.0 的提交整理。

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

新增

  • pi 升级到 1.6.0:新增 GPT-6.2 Astra / GPT-6.2 Sol(openai、azure、openai-codex,且 GPT-6.2 Sol 成为这三家的默认模型);find 工具的路径模式改为相对搜索目录(src/*.ts 不再匹配 pkg/src/a.ts,任意深度请写 **/src/*.ts);undici 安全更新;以及大量 provider 重试、工具调用和扩展方面的修复。完整列表见 pi v1.6.0。(3443700)
  • 后台子 Agent 的报告直接送进父 Agent 正在进行的运行:父 Agent 还在忙时,报告会在下一个回合边界作为 steer 送达,下一次模型调用就能看到,不必等整轮结束。(#1742)
  • PlantUML:```plantuml / ```puml 代码块显示源码和「在 plantuml.com 渲染」按钮,点击之前不会向外发送任何内容。聊天与 Markdown 文件预览均支持。(#1741)
  • 文件夹已不存在的会话可以 fork 到另一个文件夹:缺失文件夹的提示条里可直接选目录,把整段会话复制过去继续。(#1699,感谢 Eric(Mingdong) Tan)

修复

  • 子 Agent:
    • 子 Agent 写完最终报告时恰好收到 steer,报告不再被对 steer 的简短回复替代;被 pi 丢弃重试的截断草稿也不会拼进报告。(#1739)
    • resume 时带新描述会同步重命名子会话。(#1737)
    • resume 的运行同样受 profile 的 max_turns 限制。(#1755)
    • 接受包含 / 的模型 id。(#1751,感谢 Shani Singh)
  • 聊天:
    • 未发送的草稿在刷新页面后保留。(#1740)
    • 运行中发出的 prompt、steer 和 follow-up 也能立即使用 New session(从此处 fork)。(#1752)
    • 模型回复里写入的终端转义序列不再以 [38;5;5m 这类原文显示。(#1754)
    • 工具的提前结果只在同批工具仍未完成时发送,重连不再清空运行中的工具卡片。(#1747,感谢 Zachary709)
    • 换到新回复时重置流式状态,速率不再出现负值。(#1723,感谢 Zachary709)
    • codemode 进度和分支预览不再截断 emoji。(#1733,感谢 Shani Singh)
    • Markdown 中的树形绘制字符保持等宽对齐。(#1707,感谢 Yahoo)
  • 会话:
    • 升级到 Next 16.4.6 后 /api/sessions 被重复 gzip 导致无法解析的问题已修复;文件响应不再被 Next 压缩(Range 请求恢复正确)。(#1738)
    • prompt 开始运行时把当前模型记录到分支上。(#1734,感谢 Shani Singh)
    • 删除会话时改写子会话文件改为原子写入。(#1755)
  • 扩展:对话框的超时与 pi TUI 一致 (#1749,感谢 Shani Singh);粘贴内容里的 bracketed-paste 标记不再提前结束粘贴 (#1719,感谢 Divya)。
  • 终端:新 shell 首次连接时会回应它的启动查询(fish 4.1+)(#1736);不再把 xterm 对回放历史的应答发给 shell (#1725,感谢 Ed Schofield);触屏设备不再自动聚焦 (#1703,感谢 Ed Schofield);已删除的文件夹返回明确的 cwd 缺失提示而非 500 (#1750,感谢 Shani Singh)。
  • 模型:Google 等 base URL 带 v1alpha / v1beta1 时获取模型列表不再重复拼接版本 (#1717,感谢 Divya);API key 输入框中输入法确认候选词的回车不再直接保存 (#1755)。
  • 文件:流式读取文件时遵循客户端的接收速度 (#1748,感谢 Shani Singh);WSL 下「在文件管理器中打开」改用 Windows 资源管理器 (#1755)。
  • 安全:
    • 网页登录密码的并发尝试也会被正确限流。(#1694,感谢 Shani Singh)
    • 项目文件夹里的 git 子进程和插件更新检查不再拿到 PI_WEB_PASSWORD 等 Pi Web 自身的环境变量。(#1732、#1693,感谢 Shani Singh)
  • Agent 切换器在子 Agent 超过 200 个时分批读取用量 (#1730,感谢 Shani Singh);接近一百万的计数显示为 1.0M (#1731,感谢 Shani Singh)。

改进

  • 长会话中选中文本更快:屏幕外的行跳过布局,选中文字不再重渲染整个对话。(1e53573)
  • 会话搜索更快:未变化的会话文本会被缓存复用,常见查询耗时降到原来的三分之一左右。(#1692,感谢 fallleave001)
  • 首次加载侧边栏更快:摘要列表只读会话文件头部 4 KB,并减少启动时的重复工作。(#1755,移植自 brynne8/pi-web-bun,感谢 brynne8)

内部调整

  • next build 不再对 HTML 导出模块发出 webpack 警告。(#1695,感谢 platxuanpu)
  • 发布 npm 包 @agegr/pi-web@0.18.0 和镜像 ghcr.io/agegr/pi-web:0.18.0。

English

Prepared from commits in v0.17.0..v0.18.0.

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

Added

  • pi upgraded to 1.6.0: GPT-6.2 Astra and GPT-6.2 Sol on openai, azure and openai-codex, with GPT-6.2 Sol the new default for all three; the find tool's path patterns are now relative to the search directory (src/*.ts no longer matches pkg/src/a.ts; use **/src/*.ts for any depth); an undici security update; and many fixes to provider retries, tool calls and extensions. See pi v1.6.0 for the full list. (3443700)
  • A background subagent's report reaches the parent's running run: while the parent is still working, the report is steered in at the next turn boundary so its next model call sees it, instead of waiting for the whole run to end. (#1742)
  • PlantUML: a ```plantuml or ```puml fence shows its source with a "Render on plantuml.com" button; nothing is sent before the click. Works in chat and in the Markdown file preview. (#1741)
  • Fork a session whose folder is gone into another folder: the missing-folder banner opens the directory picker and copies the whole session there. (#1699, thanks Eric(Mingdong) Tan)

Fixed

  • Subagents:
    • A steer that arrives as a subagent writes its final report no longer replaces the report with the reply to the steer, and a truncated draft pi discarded is no longer joined in. (#1739)
    • Resuming with a new description renames the child session. (#1737)
    • A resumed run is held to the profile's max_turns. (#1755)
    • Model ids containing / are accepted. (#1751, thanks Shani Singh)
  • Chat:
    • A session's unsent draft survives a page reload. (#1740)
    • A prompt, steer or follow-up sent during a run offers New session right away. (#1752)
    • Terminal escapes a model writes into its reply no longer show as raw [38;5;5m text. (#1754)
    • Early tool results are sent only while sibling calls are pending, and a reconnect no longer blanks running tool cards. (#1747, thanks Zachary709)
    • Streaming state resets when the reply changes, so the rate never goes negative. (#1723, thanks Zachary709)
    • Codemode progress and branch previews no longer split emoji. (#1733, thanks Shani Singh)
    • Tree-drawing glyphs in Markdown stay in monospace columns. (#1707, thanks Yahoo)
  • Sessions:
    • With Next 16.4.6, /api/sessions was gzipped twice and failed to parse; fixed, and file responses are no longer compressed by Next (range requests are correct again). (#1738)
    • The live model is recorded on the branch when a prompt starts a run. (#1734, thanks Shani Singh)
    • Re-pointing a child session after a delete rewrites its file atomically. (#1755)
  • Extensions: a dialog's timeout waits as long as pi's TUI does (#1749, thanks Shani Singh); bracketed-paste markers inside pasted text no longer end the paste (#1719, thanks Divya).
  • Terminal: a new shell's startup queries are answered on its first connection (fish 4.1+) (#1736); xterm's replies to replayed history are no longer sent to the shell (#1725, thanks Ed Schofield); no autofocus on touch devices (#1703, thanks Ed Schofield); a deleted folder gets the cwd-missing refusal instead of a 500 (#1750, thanks Shani Singh).
  • Models: fetching models keeps a base URL's v1alpha / v1beta1 version instead of appending another (#1717, thanks Divya); an input method's confirming Enter in the API key field no longer saves the key (#1755).
  • Files: a streamed file is read no faster than the client takes it (#1748, thanks Shani Singh); "Open in file manager" uses Windows Explorer under WSL (#1755).
  • Security:
    • Login attempts sent together are throttled correctly. (#1694, thanks Shani Singh)
    • Git children in project folders and the plugin update check no longer receive Pi Web's own environment, PI_WEB_PASSWORD included. (#1732, #1693, thanks Shani Singh)
  • The agent switcher reads usage in batches past 200 subagents (#1730, thanks Shani Singh); counts just under a million show as 1.0M (#1731, thanks Shani Singh).

Improved

  • Faster text selection in long transcripts: offscreen rows skip layout, and a selection no longer re-renders the whole transcript. (1e53573)
  • Faster session search: unchanged session text is cached and reused, cutting common queries to about a third. (#1692, thanks fallleave001)
  • Faster first sidebar load: the summary list reads 4 KB of each session header and skips redundant startup work. (#1755, ported from brynne8/pi-web-bun, thanks brynne8)

Internal

  • next build no longer warns about the HTML export import. (#1695, thanks platxuanpu)
  • Published npm package @agegr/pi-web@0.18.0 and image ghcr.io/agegr/pi-web:0.18.0.