fix(coding-agent): chain tool_result extension patches

fixes #1280
This commit is contained in:
Mario Zechner 2026-02-06 11:48:51 +01:00
parent 961d3aacbc
commit 2668326e05
5 changed files with 162 additions and 13 deletions

View file

@ -524,6 +524,11 @@ pi.on("tool_call", (event) => {
Fired after tool executes. **Can modify result.**
`tool_result` handlers chain like middleware:
- Handlers run in extension load order
- Each handler sees the latest result after previous handler changes
- Handlers can return partial patches (`content`, `details`, or `isError`); omitted fields keep their current values
```typescript
import { isBashToolResult } from "@mariozechner/pi-coding-agent";