Wait for agent loop to finish in automation (#262370)

* add `workbench.action.chat.open::waitForComplete`

* s/waitForCompletion/blockOnResponse

* cleanup tests

* remove unused comment

* Apply suggestion from @connor4312

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

* fixup tests

* don't block test loop on invokeTool

* Revert "don't block test loop on invokeTool"

This reverts commit d8d16dbe79.

* fix tool confirmation test

* attempt to account for the flip of isPendingConfirmation

* [DEBUG] debug CI flake

* register tool so it exists in all test envs

* finish configuring custom tool

* run test in seperate chat windows

* revert debug changes

* remove timeout dep

* fix assertion

* cleaup tests by examining output of command directly

---------

Co-authored-by: Connor Peet <connor@peet.io>
This commit is contained in:
Ross Wollman
2025-08-20 10:13:48 -07:00
committed by GitHub
parent 0361f9c36f
commit 58c4c3bf4b
6 changed files with 97 additions and 4 deletions

View File

@@ -87,6 +87,17 @@
"commands": []
}
],
"languageModelTools": [
{
"name": "requires_confirmation_tool",
"toolReferenceName": "requires_confirmation_tool",
"displayName": "Requires Confirmation Tool",
"modelDescription": "A noop tool to trigger confirmation.",
"canBeReferencedInPrompt": true,
"icon": "$(files)",
"inputSchema": {}
}
],
"configuration": {
"type": "object",
"title": "Test Config",