Skip to content

Commit b1d09f2

Browse files
authored
Fix history support (agentclientprotocol#356)
1 parent d24066b commit b1d09f2

4 files changed

Lines changed: 10 additions & 5 deletions

File tree

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## 0.19.2
4+
5+
- Fix for broken notifications when reloading session messages
6+
37
## 0.19.1
48

59
- Support windows arm builds and clean up artifact files

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"publishConfig": {
44
"access": "public"
55
},
6-
"version": "0.19.1",
6+
"version": "0.19.2",
77
"description": "An ACP-compatible coding agent powered by the Claude Agent SDK (TypeScript)",
88
"main": "dist/lib.js",
99
"types": "dist/lib.d.ts",

src/acp-agent.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -766,8 +766,9 @@ export class ClaudeAcpAgent implements Agent {
766766
for (const message of messages) {
767767
for (const notification of toAcpNotifications(
768768
// @ts-expect-error - untyped in SDK but we handle all of these
769-
message.message,
770-
message.type,
769+
message.message.content,
770+
// @ts-expect-error - untyped in SDK but we handle all of these
771+
message.message.role,
771772
sessionId,
772773
toolUseCache,
773774
this.client,

0 commit comments

Comments
 (0)