Skip to content

v0.4.1

Choose a tag to compare

@nzlov nzlov released this 17 Sep 09:00
· 4 commits to master since this release

v0.4.1

中文

本版本修复历史会话中的图片恢复,并为 Diff、临时文件列表和事件资源预览增加按需加载,改善文件较多时的打开速度、资源占用和错误反馈。

历史图片恢复

  • 恢复 Codex 历史记录中助手消息和工具输出所包含的图片,不再因历史事件净化而丢失预览。
  • 将历史记录中的内联图片与当前卡片已归档的临时文件按内容匹配,并通过受控预览地址重新展示。
  • 支持恢复 Base64 和 Data URL 图片;无效、过大、未归档或非图片内容会安全忽略。
  • 保留自定义工具历史输出的原始内容,使其中的图片可以被正确识别和恢复。

Diff 与临时文件按需加载

  • Diff 文件列表和临时文件列表改为每页 50 项,并在滚动时继续加载,减少大型卡片的初始请求与渲染开销。
  • 后端查询新增 offset 和 limit,单次请求最多返回 100 项。
  • Diff 界面会区分“已加载”和“共计”的文件数量,并在继续加载时保持折叠状态和渐进式 Diff 获取。
  • 临时文件筛选、排序和刷新后会从第一页重新加载,同时保持内嵌预览选择一致。

事件资源精确预览

  • 会话文件可按文件 ID 精确查询,Diff 文件可按路径精确查询,避免为了打开单个资源而读取完整列表。
  • 历史消息中的文件链接和批注原文件会优先解析临时文件、工作区文件和 Diff,并按实际资源类型打开预览。
  • 文件预览对话框会立即显示加载状态,并在失败时就地展示错误信息。
  • 兼容工作树绝对路径,将其转换为仓库相对路径后匹配 Diff 文件。

English

This release restores images in session history and adds on-demand loading for Diff files, artifact lists, and event-resource previews, improving startup time, resource usage, and error feedback for sessions with many files.

Historical image restoration

  • Restore images from assistant messages and tool outputs in Codex history instead of losing them during transcript sanitization.
  • Match inline historical images to artifacts archived by the current card and display them again through controlled preview URLs.
  • Support Base64 and data URL images while safely ignoring invalid, oversized, unarchived, or non-image content.
  • Preserve original custom-tool history output so embedded images can be identified and restored correctly.

On-demand Diff and artifact loading

  • Load Diff files and artifacts in pages of 50, fetching additional items while scrolling to reduce initial request and rendering costs for large sessions.
  • Add backend offset and limit parameters, capped at 100 items per request.
  • Distinguish loaded and total file counts in the Diff view while preserving collapse state and progressive Diff loading across pages.
  • Restart artifact pagination after filtering, sorting, or refreshing while keeping inline preview selection consistent.

Targeted event-resource previews

  • Query session files by file ID and Diff files by path, avoiding full-list reads when opening a single resource.
  • Resolve file links and annotation sources from artifacts, workspace files, and Diffs, then open the appropriate preview.
  • Open the resource dialog immediately with an in-place loading state and error feedback.
  • Normalize absolute worktree paths to repository-relative paths before matching Diff files.

Complete commit list / 完整提交列表

  • 90dacab — Restore archived images in session history and lazily load Diff and artifact lists.

    恢复会话历史中的归档图片,并按需分页加载 Diff 与临时文件列表。

查看完整变更 / Full changelog: v0.4.0...v0.4.1