Skip to content

Commit c9fd596

Browse files
xtmqslapoguzov
authored andcommitted
Cancellation user message
1 parent 3be096f commit c9fd596

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
@@ -161,6 +161,16 @@ export class CodexAcpServer implements acp.Agent {
161161

162162
// Check if turn was interrupted (cancelled)
163163
if (turnCompleted.turn.status === "interrupted") {
164+
await this.connection.sessionUpdate({
165+
sessionId: params.sessionId,
166+
update: {
167+
sessionUpdate: "agent_message_chunk",
168+
content: {
169+
type: "text",
170+
text: "*Conversation interrupted*"
171+
}
172+
}
173+
});
164174
return {
165175
stopReason: "cancelled",
166176
};

0 commit comments

Comments
 (0)