File tree Expand file tree Collapse file tree 1 file changed +13
-3
lines changed
src/vs/workbench/contrib/chat/browser/actions Expand file tree Collapse file tree 1 file changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -543,13 +543,19 @@ export class CreateRemoteAgentJobAction extends Action2 {
543
543
return ;
544
544
}
545
545
546
- const userPrompt = widget . getInput ( ) ;
547
- widget . setInput ( ) ;
548
546
549
547
const chatModel = widget . viewModel ?. model ;
550
548
if ( ! chatModel ) {
551
549
return ;
552
550
}
551
+
552
+ const userPrompt = widget . getInput ( ) ;
553
+ if ( ! userPrompt ) {
554
+ return ;
555
+ }
556
+
557
+ widget . input . acceptInput ( true ) ;
558
+
553
559
const chatRequests = chatModel . getRequests ( ) ;
554
560
const defaultAgent = chatAgentService . getDefaultAgent ( ChatAgentLocation . Panel ) ;
555
561
@@ -775,7 +781,11 @@ export class CancelAction extends Action2 {
775
781
icon : Codicon . stopCircle ,
776
782
menu : [ {
777
783
id : MenuId . ChatExecute ,
778
- when : ContextKeyExpr . and ( ChatContextKeys . isRequestPaused . negate ( ) , ChatContextKeys . requestInProgress ) ,
784
+ when : ContextKeyExpr . and (
785
+ ChatContextKeys . isRequestPaused . negate ( ) ,
786
+ ChatContextKeys . requestInProgress ,
787
+ ChatContextKeys . remoteJobCreating . negate ( )
788
+ ) ,
779
789
order : 4 ,
780
790
group : 'navigation' ,
781
791
} ,
You can’t perform that action at this time.
0 commit comments