File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/monitoring Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -249,11 +249,14 @@ export class OutputMonitor extends Disposable implements IOutputMonitor {
249249 } else {
250250 // A background poll completed while waiting for a decision
251251 const r = race . r ;
252+ // r can be either an OutputMonitorState or an IPollingResult object (from catch)
253+ const state = ( typeof r === 'object' && r !== null ) ? r . state : r ;
252254
253- if ( r === OutputMonitorState . Idle || r === OutputMonitorState . Cancelled || r === OutputMonitorState . Timeout ) {
255+ if ( state === OutputMonitorState . Idle || state === OutputMonitorState . Cancelled || state === OutputMonitorState . Timeout ) {
254256 try { continuePollingPart ?. hide ( ) ; } catch { /* noop */ }
255257 continuePollingPart = undefined ;
256258 continuePollingDecisionP = undefined ;
259+ this . _promptPart = undefined ;
257260
258261 return false ;
259262 }
You can’t perform that action at this time.
0 commit comments