Skip to content

Commit ab02571

Browse files
Randall-Jiangwweitao
authored andcommitted
fix: the new prompt wont stop the process properly (aws#1404)
1 parent 3727b95 commit ab02571

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

server/aws-lsp-codewhisperer/src/language-server/agenticChat/agenticChatController.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -427,11 +427,12 @@ export class AgenticChatController implements ChatHandlers {
427427
session.pairProgrammingMode,
428428
session.getConversationType()
429429
)
430-
await this.#telemetryController.emitAddMessageMetric(params.tabId, metric.metric, 'Cancelled')
431430

432431
session.abortRequest()
433432
void this.#invalidateAllShellCommands(params.tabId, session)
434433
session.rejectAllDeferredToolExecutions(new CancellationError('user'))
434+
435+
await this.#telemetryController.emitAddMessageMetric(params.tabId, metric.metric, 'Cancelled')
435436
})
436437
session.setConversationType('AgenticChat')
437438

0 commit comments

Comments
 (0)