Skip to content

feat(web): add trajectory overview and inspectors - #868

Merged
tt-a1i merged 2 commits into
openpi-dev:mainfrom
testikun:codex/trajectory-inspection-main
Oct 23, 2026
Merged

tt-a1i merged 2 commits into
openpi-dev:mainfrom
testikun:codex/trajectory-inspection-main

Conversation

@testikun

@testikun testikun commented Oct 16, 2026 •

Copy link
Copy Markdown
Collaborator

Problem

长回合的执行轨迹以消息卡片为主,难以定位某次模型响应、Code Mode 内部调用及对应结果。已有原生用量、耗时和失败信息也缺少便于检查的展示。

Closes #785.

Value

通过紧凑列表、三轨总览与详情面板,让用户快速查找调用、查看原始输入和结果,并辨别失败、缺失证据与已有测量。

Approach

  • 增加上下文/模型/工具三轨总览、搜索、选区、折叠和按需历史加载;选中记录与详情标签在追加历史时保持稳定。

  • 复用 Pi Session、原生 Code Mode 子调用和分支感知历史读取。显示原生状态、单次用量与耗时;未记录的数据保持未知,总览宽度不表示真实耗时。

  • 提供原文复制、换行、按需代码高亮和键盘操作,适配窄屏及明暗主题。保留 DeepSeek Harness 的 MIT 来源说明和许可。

  • Rebase 到 main ea4dfb99,按合并后的源码重新构建 Web 产物;git range-diff 确认原功能源码未变。独立安装时从选定的 Pi Host 解析 TUI;Windows 真进程 post-edit 测试复用现有独立进程组,保留超时和顺序检查。

Validation

  • Final integration head bdaa5758 is rebased onto main 31fc7ffb after feat(web): configure thinking levels and align settings pages #864 merged. git diff 9e0385f2 bdaa5758 is empty: the full tested file tree is unchanged. All 18 final-head checks passed; merged as 3497f23d with explicit user authorization for administrator merge.
  • Source conflict review retained the new overview/ledger/inspector layout, native theme accent and hover feedback, and the model-schema Host alias introduced by feat(web): configure thinking levels and align settings pages #864. Duplicate Windows isolation work is retained once.
  • bun run check: passed.
  • VITEST_MAX_WORKERS=2 bun run test: 2,380 Node tests passed / 8 existing skips; 1,617 UI tests passed in 105 files.
  • Trajectory browser suite: 3 passed, including light/dark and desktop/narrow panels. Inspected the generated mobile screenshot separately.
  • All 18 GitHub checks passed on bdaa5758fa37cc2b85851ac2306cdf6434692cbd.

Impact

  • **用户界面:**更新执行轨迹总览、列表与详情交互。
  • **模型上下文/工具:**无变化。
  • **运行时/生命周期:**沿用 Pi 与现有历史读取,不新增调度、provider 栈、自动重试或 Session 存储;独立安装包复用选定 Host 的 TUI 依赖。
  • **持久配置/数据:**无配置项或 Session 迁移;消息投影新增可选原生用量与模型身份字段,旧记录继续可读。
  • **兼容性与边界:**持久子调用摘要可能缺少结果正文;缺失耗时和用量保持未知。固定数据浏览器验收不代表真实模型性能结论。

@github-actions github-actions Bot added the documentation Improvements or additions to documentation label Oct 16, 2026
@testikun
testikun force-pushed the codex/trajectory-inspection-main branch from 74ff895 to 5563f8f Compare October 23, 2026 01:44
@tt-a1i
tt-a1i force-pushed the codex/trajectory-inspection-main branch from 5563f8f to 9e0385f Compare October 23, 2026 02:36
@github-actions github-actions Bot added the area:setup OpenPI setup, configuration, or setup documentation label Oct 23, 2026
@tt-a1i
tt-a1i force-pushed the codex/trajectory-inspection-main branch from 9e0385f to bdaa575 Compare October 23, 2026 03:06
@github-actions github-actions Bot removed the area:setup OpenPI setup, configuration, or setup documentation label Oct 23, 2026
@tt-a1i
tt-a1i merged commit 3497f23 into openpi-dev:main Oct 23, 2026
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(web): adopt DeepSeek-style execution trajectory and inspectors

2 participants