github agegr/pi-web v0.7.13

5 hours ago

中文

基于 v0.7.12..v0.7.13 的提交整理。

新增

  • 在支持 piDesktop 桥接的桌面环境中加入原生目录选择器,同时保留 Web 环境的手动路径输入回退(0fa4c43)。
  • 新增 pi-web --no-openPI_WEB_NO_OPEN=1,支持后台服务或开机启动时禁止自动打开浏览器(67a2038)。

修复

  • 修复 Markdown 外部链接和文件预览中的本地文件链接打开行为(72a7c994ce7eab)。
  • 初始化 SDK 全局主题,并为扩展自定义 UI 提供纯文本主题与按键绑定,修复扩展启动和渲染崩溃(#142#143403828c1933d27)。
  • 修复 Windows 符号链接/目录联接识别,并保留目录读取回退路径(0883c79ff10a77)。
  • 修复会话列表与模型缓存的失效、并发和新建会话一致性问题(c6c09fef87d8e9)。
  • 修复长聊天懒加载后的滚动位置、缩略图同步和消息更新回归(4909127)。

改进

  • 长聊天默认只渲染最近 50 条消息,向上滚动时分批加载;同时节流缩略图测量并减少无效组件重渲染(23efd27dc0eb22)。
  • 为会话列表加入 30 秒缓存、为模型接口加入 60 秒缓存,并在相关写操作后主动失效(d469c68ec74dd9)。
  • 使用 readdirSync({ withFileTypes: true }) 优化目录列表读取,减少逐文件 stat 调用(7878ec4)。

内部调整

  • 发布 npm 包 @agegr/pi-web@0.7.135f6e6d3)。

English

Prepared from commits in v0.7.12..v0.7.13.

Added

  • Added a native directory picker when the piDesktop bridge is available, with manual path entry retained as the web fallback (0fa4c43).
  • Added pi-web --no-open and PI_WEB_NO_OPEN=1 for background services and startup environments that should not launch a browser (67a2038).

Fixed

  • Fixed external Markdown links and local file links opened from file previews (72a7c99, 4ce7eab).
  • Initialized the SDK global theme and supplied a plain-text theme plus keybindings to extension custom UIs, fixing extension startup and rendering crashes (#142, #143; 403828c, 1933d27).
  • Fixed Windows symlink/junction directory detection while preserving directory-read fallbacks (0883c79, ff10a77).
  • Fixed session-list and model-cache invalidation, concurrency, and new-session consistency issues (c6c09fe, f87d8e9).
  • Fixed scroll restoration, minimap synchronization, and message update regressions in long-chat lazy loading (4909127).

Improved

  • Long chats now render only the latest 50 messages initially and load earlier pages on upward scroll; minimap measurement is throttled and unnecessary component renders are reduced (23efd27, dc0eb22).
  • Added a 30-second session-list cache and a 60-second models API cache with explicit invalidation after related writes (d469c68, ec74dd9).
  • Optimized directory listing with readdirSync({ withFileTypes: true }) to avoid per-file stat calls (7878ec4).

Internal

  • Published npm package @agegr/pi-web@0.7.13 (5f6e6d3).

Don't miss a new pi-web release

NewReleases is sending notifications on new releases.