Skip to content

fix(isolated-review): report tool_execution events as live progress - #17

Merged
leing2021 merged 1 commit into
mainfrom
fix/isolated-review-tool-progress
Sep 18, 2026
Merged

leing2021 merged 1 commit into
mainfrom
fix/isolated-review-tool-progress

Conversation

@leing2021

Copy link
Copy Markdown
Owner

变更说明

04-review isolated_review 运行期 UI 静止(无动态滚动)的根因:progress 只解析 message_end assistant 文本,reviewer 连续调工具期间零输出。

  • 解析 tool_execution_start(args 摘要预览)与 tool_execution_end(isError),与 message_end 文本并列推送
  • args 预览优先取 file_path/path/command/query/pattern/url/skill,拍平 + 120 字符截断
  • 同步附记隔离必要性外部证据链至本地 solution artifact(docs/ 不入库,按 gitignore 约定)

变更范围

2 files, +103/-1

测试

  • bun test:256 pass / 0 fail(+5 单测 +1 集成)
  • bunx tsc --noEmit:0 error
  • Live run:真实 spawn pi 子 session,progress 实时滚动验证通过

Tool-only stretches (reading diff, rg, rules) previously emitted zero
progress, freezing the host UI for minutes mid-review.

- parse tool_execution_start (args preview) and tool_execution_end(isError)
  from the reviewer JSON stream alongside message_end assistant text
- args preview picks file_path/path/command/query/pattern/url/skill,
  flattened and capped at 120 chars
- +5 unit tests + 1 integration test; bun test 256 pass, tsc clean
@leing2021
leing2021 merged commit 9052f81 into main Sep 18, 2026
2 checks passed
@leing2021
leing2021 deleted the fix/isolated-review-tool-progress branch September 18, 2026 05:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant