feat(coding-agent): add hidden thinking label api closes #2673

This commit is contained in:
Mario Zechner
2026-03-29 21:33:15 +02:00
parent 9508eea9ec
commit de022ceba7
8 changed files with 103 additions and 2 deletions

View File

@@ -14,6 +14,7 @@
- Added `ToolDefinition.prepareArguments` hook to prepare raw tool call arguments before schema validation, enabling compatibility shims for resumed sessions with outdated tool schemas
- Built-in `edit` tool now uses `prepareArguments` to silently fold legacy top-level `oldText`/`newText` into `edits[]` when resuming old sessions
- Added `ctx.ui.setHiddenThinkingLabel()` so extensions can customize the collapsed thinking label in interactive mode, with a no-op in RPC mode and a runnable example extension in `examples/extensions/hidden-thinking-label.ts` ([#2673](https://github.com/badlogic/pi-mono/issues/2673))
### Fixed