8000 refactor(harness): return Pi's tool result shape from mikan tools by geminixiang · Pull Request #188 · geminixiang/mikan · GitHub
[go: up one dir, main page]

Skip to content

refactor(harness): return Pi's tool result shape from mikan tools - #188

Merged
geminixiang merged 1 commit into
mainfrom
refactor/pi-tool-result
Oct 17, 2026
Merged

geminixiang merged 1 commit into
mainfrom
refactor/pi-tool-result

Conversation

@geminixiang
@geminixiang geminixiang commented Oct 17, 2026 •
Copy link
Copy Markdown
Owner

Pi 1.2 renamed a tool result's content to output. mikan kept MikanToolResult with content, converted Pi's sandbox tool results into it, and converted every result back (toPiTool) before registering. Tools now return Pi's ToolExecutionResult directly; both conversions are gone.

Risk: ToolExecutionResult is a weak type, so TypeScript accepts a result that still says content, and Pi then shows the retained output() text instead. Reverting the subagent tool's output fails 13 subagent tests, so the suite catches this.

The published declaration surface (public-api snapshot) is unchanged.

Acceptance

Case main branch
Full suite (2150 tests) pass pass
Public API snapshot pass pass (unchanged)

Verification

  • Full gate (lint, fmt, knip, build, typecheck, test) passes on the branch.
  • Real-platform check and Slack E2E (slack-e2e.yml) not yet run: this changes the run loop and its tools, so it is on the Slack message path; they wait for approval.

Research: docs/research/pi-1.3-retirement-2026-10.md (added in #186).

Pi 1.2 renamed a tool result's content to output. mikan kept its own MikanToolResult with content, converted Pi's sandbox tool results into it, and converted every result back before registering the tool. Tools now return Pi's ToolExecutionResult directly, and both conversions are gone.
@geminixiang
geminixiang merged commit 7105423 into main Oct 17, 2026
5 checks passed
@geminixiang
geminixiang deleted the refactor/pi-tool-result branch October 17, 2026 15:04
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

0