We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 21a7b8b commit adb5a77Copy full SHA for adb5a77
1 file changed
src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/monitoring/outputMonitor.ts
@@ -951,7 +951,10 @@ export class OutputMonitor extends Disposable implements IOutputMonitor {
951
if (!(chatModel instanceof ChatModel)) {
952
throw new Error('No model');
953
}
954
- const request = chatModel.getRequests().at(-1);
+ // In async mode the last request may be an implicit (hidden) steering request.
955
+ // Attach the elicitation to the last visible request so it renders in the UI.
956
+ const requests = chatModel.getRequests();
957
+ const request = requests.findLast(r => !r.isImplicit) ?? requests.at(-1);
958
if (!request) {
959
throw new Error('No request');
960
0 commit comments