File tree Expand file tree Collapse file tree 1 file changed +2
-10
lines changed
src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy Expand file tree Collapse file tree 1 file changed +2
-10
lines changed Original file line number Diff line number Diff line change @@ -49,11 +49,6 @@ export interface IPromptDetectionResult {
4949
5050/**
5151 * Detects if the given text content appears to end with a common prompt pattern.
52- * This is used as a heuristic to determine if a command has finished executing.
53- *
54- * The idea is to do basic regex checks after the initial timeout to extend the
55- * timeout if it doesn't look like a common prompt format, giving commands more
56- * time to complete before assuming they're done.
5752 */
5853export function detectsCommonPromptPattern ( cursorLine : string ) : IPromptDetectionResult {
5954 if ( cursorLine . trim ( ) . length === 0 ) {
@@ -99,12 +94,9 @@ export function detectsCommonPromptPattern(cursorLine: string): IPromptDetection
9994}
10095
10196/**
102- * Enhanced version of waitForIdle that uses prompt detection heuristics.
103- * After the initial timeout , checks if the terminal content looks like a common prompt.
97+ * Enhanced version of { @link waitForIdle} that uses prompt detection heuristics. After the terminal
98+ * idles for the specified period , checks if the terminal's cursor line looks like a common prompt.
10499 * If not, extends the timeout to give the command more time to complete.
105- *
106- * This addresses the need for better heuristics around prompt characters for evaluating
107- * no shell integration command finished state, as requested in the issue.
108100 */
109101export async function waitForIdleWithPromptHeuristics (
110102 onData : Event < unknown > ,
You can’t perform that action at this time.
0 commit comments