Skip to content

Commit 18b2a18

Browse files
authored
fix: removing warning icon for shell commands (#1233)
1 parent 634587c commit 18b2a18

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

server/aws-lsp-codewhisperer/src/language-server/agenticChat/agenticChatController.ts

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1247,12 +1247,14 @@ export class AgenticChatController implements ChatHandlers {
12471247
]
12481248
: []
12491249
header = {
1250-
status: {
1251-
icon: 'warning',
1252-
status: 'warning',
1253-
position: 'left',
1254-
// TODO: Add `description` if necessary to show a tooltip
1255-
},
1250+
status: requiresAcceptance
1251+
? {
1252+
icon: 'warning',
1253+
status: 'warning',
1254+
position: 'left',
1255+
// TODO: Add `description` if necessary to show a tooltip
1256+
}
1257+
: {},
12561258
body: 'shell',
12571259
buttons,
12581260
}

0 commit comments

Comments
 (0)