AI Chat Completion Event API for Extensions

Background

As a Cursor user and extension developer, I’m working on a notification sound extension that plays when AI responses are completed. Currently, there’s no reliable way to detect when an AI response finishes, forcing developers to use workarounds.

Current Issues

  • No official API to detect AI chat completion

  • Having to rely on document changes, UI elements, or activity timeouts

  • Detection methods break with UI updates

  • Unnecessary resource consumption

  • Missed detections affecting user experience

Request

Please provide an official API event that extensions can subscribe to when AI responses complete. This could be:

javascript

Apply to ai-reply-sou…

// Example API

vscode.cursor.onAIReplyCompleted((replyInfo) => {

console.log(‘AI reply completed’, replyInfo.messageId);

});

Benefits

  • Better user experience with reliable notification systems

  • More extension development around chat features

  • Reduced resource usage from workaround methods

  • Competitive advantage in the AI code assistant space

This simple addition would significantly improve the Cursor extension ecosystem and enable better tooling for your users.

Thank you for considering this request!

1 Like