File tree Expand file tree Collapse file tree 3 files changed +4
-16
lines changed
codewhispererChat/controllers/chat Expand file tree Collapse file tree 3 files changed +4
-16
lines changed Original file line number Diff line number Diff line change @@ -392,7 +392,7 @@ export class Connector extends BaseConnector {
392392 break
393393 case 'run-shell-command' :
394394 answer . header = {
395- icon : 'code-block ' as MynahIconsType ,
395+ icon : 'shell ' as MynahIconsType ,
396396 body : 'shell' ,
397397 status : {
398398 icon : 'ok' as MynahIconsType ,
@@ -403,7 +403,7 @@ export class Connector extends BaseConnector {
403403 break
404404 case 'reject-shell-command' :
405405 answer . header = {
406- icon : 'code-block ' as MynahIconsType ,
406+ icon : 'shell ' as MynahIconsType ,
407407 body : 'shell' ,
408408 status : {
409409 icon : 'cancel' as MynahIconsType ,
Original file line number Diff line number Diff line change @@ -821,10 +821,7 @@ export class ChatController {
821821 getLogger ( ) . error (
822822 `toolUse name: ${ currentToolUse ! . name } of toolUseWithError in the stored session doesn't match when click shell command reject button.`
823823 )
824- return
825824 }
826-
827- await this . generateStaticTextResponse ( 'reject-shell-command' , triggerId )
828825 }
829826
830827 private async processCustomFormAction ( message : CustomFormActionMessage ) {
Original file line number Diff line number Diff line change @@ -72,12 +72,7 @@ import { localize } from '../../../../shared/utilities/vsCodeUtils'
7272import { getDiffLinesFromChanges } from '../../../../shared/utilities/diffUtils'
7373import { FsReadParams } from '../../../tools/fsRead'
7474
75- export type StaticTextResponseType =
76- | 'quick-action-help'
77- | 'onboarding-help'
78- | 'transform'
79- | 'help'
80- | 'reject-shell-command'
75+ export type StaticTextResponseType = 'quick-action-help' | 'onboarding-help' | 'transform' | 'help'
8176
8277export type MessengerResponseType = {
8378 $metadata : { requestId ?: string ; httpStatusCode ?: number }
@@ -605,7 +600,7 @@ export class Messenger {
605600 } ,
606601 ]
607602 header = {
608- icon : 'code-block ' as MynahIconsType ,
603+ icon : 'shell ' as MynahIconsType ,
609604 body : 'shell' ,
610605 buttons,
611606 }
@@ -753,10 +748,6 @@ export class Messenger {
753748 ]
754749 followUpsHeader = 'Try Examples:'
755750 break
756- case 'reject-shell-command' :
757- // need to update the string later
758- message = 'The shell command execution rejected. Abort.'
759- break
760751 }
761752
762753 this . dispatcher . sendChatMessage (
You can’t perform that action at this time.
0 commit comments