Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Conversation

@rwoll
Copy link
Member

@rwoll rwoll commented Aug 19, 2025

Automation needs to determine when the "chat loop" has reached a terminal state so it can inspect the state of the workspace. To support this, workbench.action.chat.open now accepts an optional blockOnResponse flag (defaulting to non-blocking).

Additionally, when a terminal state is reached, automation must be able to determine the precise error that's hit. To support this, IChatResponseErrorDetails.code has been added. While IChatResponseErrorDetails has a number of flags (isQuotaExceeded, etc.) we do not want to formally introduce more arbitrary states to the API as flags. Instead, code can be used/set by a Chat Extension.

As a follow up, getErrorDetailsFromChatFetchError in the Chat extension will be updated to set the new code field.

Co-authored-by: Connor Peet connor@peet.io

@rwoll rwoll changed the title Wait on finish of agent loop Wait for agent loop to finish in automation Aug 19, 2025
connor4312
connor4312 previously approved these changes Aug 19, 2025
@vs-code-engineering vs-code-engineering bot added this to the August 2025 milestone Aug 19, 2025
Co-authored-by: Connor Peet <connor@peet.io>
mjbvz
mjbvz previously approved these changes Aug 19, 2025
@rwoll rwoll marked this pull request as draft August 19, 2025 21:55
@rwoll
Copy link
Member Author

rwoll commented Aug 19, 2025

converting to draft while I debug the CI flake.

@rwoll rwoll marked this pull request as ready for review August 20, 2025 00:11
@rwoll rwoll requested review from connor4312 and mjbvz August 20, 2025 00:11
@connor4312 connor4312 merged commit 58c4c3b into microsoft:main Aug 20, 2025
17 checks passed
@vs-code-engineering vs-code-engineering bot locked and limited conversation to collaborators Oct 4, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.