You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
constresponse=awaitlanguageModelsService.sendChatRequest(models[0],newExtensionIdentifier('Github.copilot-chat'),[{role: ChatMessageRole.Assistant,content: [{type: 'text',value: `Evaluate this terminal output to determine if the command is finished or still in process: ${buffer}. Return the word true if finished and false if still in process.`}]}],{},token);
138
+
constresponse=awaitlanguageModelsService.sendChatRequest(models[0],newExtensionIdentifier('Github.copilot-chat'),[{role: ChatMessageRole.Assistant,content: [{type: 'text',value: `Evaluate this terminal output to determine if there were errors or if the command ran successfully: ${buffer}.`}]}],{},token);
? `Note: The tool simplified the command to \`${command}\`, and that command is now running in terminal with ID=${termId}`
319
319
: `Command is running in terminal with ID=${termId}`
320
320
);
321
-
resultText+=outputAndIdle.terminalExecutionIdleBeforeTimeout ? `\n\ The command became idle with output:\n${outputAndIdle.output}` : `\n\ The command is still running, with output:\n${outputAndIdle.output}`;
321
+
resultText+=outputAndIdle.modelOutputEvalResponse ? `\n\ The command became idle with output:\n${outputAndIdle.modelOutputEvalResponse}` : `\n\ The command is still running, with output:\n${outputAndIdle.output}`;
return{content: [{kind: 'text',value: localize('copilotChat.terminalNotFound','Terminal not found for task `{0}`',taskDefinition?.taskLabel)}],toolResultMessage: newMarkdownString(localize('copilotChat.terminalNotFound','Terminal not found for task `{0}`',taskDefinition?.taskLabel))};
86
+
return{content: [{kind: 'text',value: `Terminal not found for task ${taskDefinition?.taskLabel}`}],toolResultMessage: newMarkdownString(localize('copilotChat.terminalNotFound','Terminal not found for task `{0}`',taskDefinition?.taskLabel))};
87
87
}
88
88
return{
89
89
content: [{
90
90
kind: 'text',
91
-
value: localize('copilotChat.taskOutput','Output of task `{0}`:\n{1}',taskDefinition.taskLabel,getOutput(terminal))
91
+
value: `Output of task ${taskDefinition.taskLabel}: ${getOutput(terminal)}`
return{content: [{kind: 'text',value: localize('copilotChat.noTerminal','Task started but no terminal was found for: `{0}`',taskDefinition.taskLabel)}],toolResultMessage: newMarkdownString(localize('copilotChat.noTerminal','Task started but no terminal was found for: `{0}`',taskDefinition.taskLabel))};
76
+
return{content: [{kind: 'text',value: `Task started but no terminal was found for: ${taskDefinition.taskLabel}`}],toolResultMessage: newMarkdownString(localize('copilotChat.noTerminal','Task started but no terminal was found for: `{0}`',taskDefinition.taskLabel))};
77
77
}
78
78
79
79
_progress.report({message: newMarkdownString(localize('copilotChat.checkingOutput','Checking output for `{0}`',taskDefinition.taskLabel))});
0 commit comments