Skip to content

fix(ui): use Pi-native child tool renderers - #122

Merged
tt-a1i merged 1 commit into
mainfrom
codex/issue-105-native-tools
Aug 24, 2026
Merged

fix(ui): use Pi-native child tool renderers#122
tt-a1i merged 1 commit into
mainfrom
codex/issue-105-native-tools

Conversation

@tt-a1i

@tt-a1i tt-a1i commented Aug 24, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • render Direct Subagent and Workflow child tool activity through Pi native ToolExecutionComponent
  • retain real tool definitions and raw event payloads only in an ephemeral operator-side ledger
  • keep persisted transcripts unchanged and preserve the compatibility renderer for historical artifacts
  • retain current-session Workflow renderers after settlement so opening a completed child does not regress to JSON fallback

Root cause

The child transcript projection discarded the child session actual ToolDefinition and raw call/result payloads. Its closed handwritten formatter therefore rendered extension tools such as git_log as raw JSON even though the main Pi session used the tool native renderer.

Validation

  • regression test first reproduced git_log rendering as raw JSON
  • focused Direct/Workflow transcript tests: 23 passed, 0 failed
  • bun run check
  • bun run test (Node 889 passed; Vitest 30 passed)
  • git diff --check

Isolated partial pi -e smoke attempts were not counted as acceptance because they did not reconstruct the canonical OpenPI tool surface. The installed stable runtime was left untouched.

Closes #105

@tt-a1i
tt-a1i merged commit 236ea54 into main Aug 24, 2026
2 checks passed
@tt-a1i
tt-a1i deleted the codex/issue-105-native-tools branch August 24, 2026 13:52
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.

统一 Direct Subagent 与 Workflow child 的会话渲染和 follow-to-end 滚动语义

1 participant