← 返回更新日志

Pi v0.50.4

2026-01-30 · GitHub 原文
### 新功能 - **SSH/mosh 的 OSC 52 剪贴板支持** - `/copy` 命令现在通过 OSC 52 终端转义序列在远程连接上生效。使用 SSH 连接 pi 时不再受剪贴板困扰。 ([#1069](https://github.com/badlogic/pi-mono/issues/1069) by [@gturkoglu](https://github.com/gturkoglu)) - **Vercel AI Gateway 路由** - 通过 Vercel 的 AI Gateway 路由请求,支持提供商故障转移和负载均衡。在 models.json 中通过 `vercelGatewayRouting` 进行配置。 ([#1051](https://github.com/badlogic/pi-mono/pull/1051) by [@ben-vargas](https://github.com/ben-vargas)) - **字符跳转导航** - 类似 Bash/Readline 的字符搜索:Ctrl+] 向前跳转到下一个字符,Ctrl+Alt+] 向后跳转。 ([#1074](https://github.com/badlogic/pi-mono/pull/1074) by [@Perlence](https://github.com/Perlence)) - **Emacs 风格的 Ctrl+B/Ctrl+F 导航** - 编辑器中用于单词导航(光标左/右移动单词)的替代快捷键。 ([#1053](https://github.com/badlogic/pi-mono/pull/1053) by [@ninlds](https://github.com/ninlds)) - **行边界导航** - 在首行视觉行按 Up 键时编辑器跳转至行首,在末行视觉行按 Down 键时跳转至行尾。 ([#1050](https://github.com/badlogic/pi-mono/pull/1050) by [@4h9fbZ](https://github.com/4h9fbZ)) - **性能改进** - 优化了 TUI 中的图像行检测和方框渲染缓存,以提升渲染性能。 ([#1084](https://github.com/badlogic/pi-mono/pull/1084) by [@can1357](https://github.com/can1357)) - **`set_session_name` RPC 命令** - 无头客户端现在可以以编程方式设置会话显示名称。 ([#1075](https://github.com/badlogic/pi-mono/pull/1075) by [@dnouri](https://github.com/dnouri)) - **禁用双重转义行为** - `doubleEscapeAction` 设置新增 `"none"` 选项,可完全禁用双重转义快捷键。 ([#973](https://github.com/badlogic/pi-mono/issues/973) by [@juanibiapina](https://github.com/juanibiapina)) ### 新增 - 为 `doubleEscapeAction` 设置添加 `"none"` 选项,以完全禁用双重转义行为 ([#973](https://github.com/badlogic/pi-mono/issues/973) by [@juanibiapina](https://github.com/juanibiapina)) - 为 SSH/mosh 会话添加 OSC 52 剪贴板支持。`/copy` 现在可在远程连接上工作。 ([#1069](https://github.com/badlogic/pi-mono/issues/1069) by [@gturkoglu](https://github.com/gturkoglu)) - 通过 models.json 中的 `vercelGatewayRouting` 添加 Vercel AI Gateway 路由支持 ([#1051](https://github.com/badlogic/pi-mono/pull/1051) by [@ben-vargas](https://github.com/ben-vargas)) - 为编辑器中的光标左/右单词导航添加 Ctrl+B 和 Ctrl+F 快捷键 ([#1053](https://github.com/badlogic/pi-mono/pull/1053) by [@ninlds](https://github.com/ninlds)) - 添加字符跳转导航:Ctrl+] 向前跳转至下一字符,Ctrl+Alt+] 向后跳转 ([#1074](https://github.com/badlogic/pi-mono/pull/1074) by [@Perlence](https://github.com/Perlence)) - 编辑器现在在首行视觉行按 Up 键时跳转至行首,在末行视觉行按 Down 键时跳转至行尾 ([#1050](https://github.com/badlogic/pi-mono/pull/1050) by [@4h9fbZ](https://github.com/4h9fbZ)) - 优化图像行检测和方框渲染缓存,以提升 TUI 性能 ([#1084](https://github.com/badlogic/pi-mono/pull/1084) by [@can1357](https://github.com/can1357)) - 为无头客户端添加 `set_session_name` RPC 命令以设置会话显示名称 ([#1075](https://github.com/badlogic/pi-mono/pull/1075) by [@dnouri](https://github.com/dnouri)) ### 修复 - Read 工具现在支持处理 macOS 文件名中的弯引号(U+2019)和 NFD Unicode 规范化 ([#1078](https://github.com/badlogic/pi-mono/issues/1078)) - 扫描技能、提示词、主题和扩展的程序包资源时,尊重 .gitignore、.ignore 和 .fdignore 文件 ([#1072](https://github.com/badlogic/pi-mono/issues/1072)) - 修复了提供商省略输入时工具调用参数默认值的问题 ([#1065](https://github.com/badlogic/pi-mono/issues/1065)) - settings.json 中的无效 JSON 不再导致文件被覆盖为空配置 ([#1054](https://github.com/badlogic/pi-mono/issues/1054)) - 配置选择器现在会为显示名称重复的扩展显示文件夹名称 ([#1064](https://github.com/badlogic/pi-mono/pull/1064) by [@Graffioh](https://github.com/Graffioh))