Skip to content

Commit 47f12c6

Browse files
authored
Merge branch 'aws:feature/agentic-chat' into feature/agentic-chat
2 parents 5aace55 + 8e00eef commit 47f12c6

File tree

3 files changed

+4
-16
lines changed

3 files changed

+4
-16
lines changed

packages/core/src/amazonq/webview/ui/apps/cwChatConnector.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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,

packages/core/src/codewhispererChat/controllers/chat/controller.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff 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) {

packages/core/src/codewhispererChat/controllers/chat/messenger/messenger.ts

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -72,12 +72,7 @@ import { localize } from '../../../../shared/utilities/vsCodeUtils'
7272
import { getDiffLinesFromChanges } from '../../../../shared/utilities/diffUtils'
7373
import { 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

8277
export 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(

0 commit comments

Comments
 (0)