From 2f2d5ffa52ff4963c785fece38790418aed54cea Mon Sep 17 00:00:00 2001 From: Mario Zechner Date: Wed, 31 Dec 2025 14:27:45 +0100 Subject: [PATCH] Specify AgentSession for branching API in CHANGELOG.md --- packages/coding-agent/CHANGELOG.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/coding-agent/CHANGELOG.md b/packages/coding-agent/CHANGELOG.md index 771b787f..d5ff5c9b 100644 --- a/packages/coding-agent/CHANGELOG.md +++ b/packages/coding-agent/CHANGELOG.md @@ -68,7 +68,7 @@ The new `ctx: CustomToolContext` provides `sessionManager`, `modelRegistry`, and **Session event changes:** - `CustomToolSessionEvent` now only has `reason` and `previousSessionFile` -- Session entries are no longer in the event. Use `ctx.sessionManager.getBranch()` to reconstruct state +- Session entries are no longer in the event. Use `ctx.sessionManager.getBranch()` or `ctx.sessionManager.getEntries()` to reconstruct state - New reasons: `"tree"` (for `/tree` navigation) and `"shutdown"` (for cleanup on exit) - `dispose()` method removed. Use `onSession` with `reason: "shutdown"` for cleanup @@ -83,7 +83,7 @@ See [docs/custom-tools.md](docs/custom-tools.md) and [examples/custom-tools/](ex - `model` returns `Model | undefined` (was `Model | null`) - `Attachment` type removed. Use `ImageContent` from `@mariozechner/pi-ai` instead. Add images directly to message content arrays. -**Branching API:** +**AgentSession branching API:** - `branch(entryIndex: number)` → `branch(entryId: string)` - `getUserMessagesForBranching()` returns `{ entryId, text }` instead of `{ entryIndex, text }` - `reset()` and `switchSession()` now return `Promise` (false if cancelled by hook)