Skip to content

Commit 9af3d67

Browse files
committed
Cancellation user message
1 parent 15a7a84 commit 9af3d67

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

src/CodexAcpServer.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,16 @@ export class CodexAcpServer implements acp.Agent {
167167

168168
// Check if turn was interrupted (cancelled)
169169
if (turnCompleted.turn.status === "interrupted") {
170+
await this.connection.sessionUpdate({
171+
sessionId: params.sessionId,
172+
update: {
173+
sessionUpdate: "agent_message_chunk",
174+
content: {
175+
type: "text",
176+
text: "*Conversation interrupted*"
177+
}
178+
}
179+
});
170180
return {
171181
stopReason: "cancelled",
172182
};

0 commit comments

Comments
 (0)