First Attempt: Trying to Capture Cursor CLI Thought Process and Stream Output in a Custom VS22 Extension

Hi everyone,

I’m currently developing my first Cursor extension for VS22 using Cursor CLI commands. My goal is to create a complete and fully featured extension that integrates all Cursor capabilities into one interface.

However, I’ve run into an issue: I can’t display Cursor’s “thought process” (its internal reasoning or chain of thought) in my custom UI.

Also, after sending a prompt, I can only show part of the response in my interface — the rest of the reasoning or streaming output doesn’t appear. Despite that, Cursor still executes the requested action correctly in the background.

Since this is my first time developing an extension like this, I might be missing something about how the Cursor CLI handles streaming internally.

Can anyone explain how to properly capture and display the full reasoning/response stream in a custom interface, or point me to any resources about how Cursor CLI manages this process?

Thanks in advance!