Skip to content

AI Session Viewer v2.2.0

Choose a tag to compare

@github-actions github-actions released this 15 Mar 16:33

Added

Tool Output 折叠与 Markdown 渲染

  • 折叠支持:>_ Tool Output 区域内容超过 400 字符时默认折叠,标题栏显示字符数,点击可展开;短内容默认展开,用户可手动折叠
  • MD / 源码切换:标题栏常驻 </> / MD 切换按钮,随时在 Markdown 渲染和原始文本之间切换;MD 模式使用 ReactMarkdown + remark-gfm,支持标题、表格、代码块等格式
  • 两种 block 统一:tool_result 和 function_call_output 两种类型统一使用 OutputBlock 子组件,行为完全一致
  • 错误状态保留:tool_result isError 时保持红色边框和背景

Fixed

ToolViewer 长行自动换行

  • 代码视图:ToolViewer 切换到 </> 代码模式时,JSON 中超长字符串(如 content 字段大段文本)现在按容器宽度自动换行,不再出现水平滚动条
  • Read / Write 内容视图:ReadContent 和 WriteContent 的语法高亮区域同步启用 wrapLongLines,读取或写入的长行代码不再水平溢出

Refactored

  • MarkdownContent 提取为共享组件:将 ToolViewers.tsx 内部的 Markdown 渲染函数提取为 src/components/message/MarkdownContent.tsx 独立导出组件,ToolOutputMessage 可直接复用,消除重复逻辑

Downloads

Platform Installer Portable
Windows .msi / .exe (NSIS) *-portable.zip
macOS (Apple Silicon) .dmg —
macOS (Intel) .dmg —
Linux .deb / .AppImage —

Windows 便携版解压即用,无需安装。需要系统已安装 WebView2(Win10/11 默认内置)。