Skip to content

Commit 9fe9de7

Browse files
committed
fix: avoid hardcoded buttons for testing
1 parent 58ad02a commit 9fe9de7

File tree

1 file changed

+1
-15
lines changed

1 file changed

+1
-15
lines changed

packages/amazonq/src/lsp/chat/messages.ts

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -472,22 +472,8 @@ async function handleCompleteResult<T>(
472472
tabId: string,
473473
disposable: Disposable
474474
) {
475-
const decryptedMessage = (
475+
const decryptedMessage =
476476
typeof result === 'string' && encryptionKey ? await decodeRequest(result, encryptionKey) : result
477-
) as any
478-
479-
decryptedMessage.additionalMessages[0].buttons = [
480-
{
481-
id: 'reject-shell-command',
482-
text: 'Reject',
483-
icon: 'cancel',
484-
},
485-
{
486-
id: 'run-shell-command',
487-
text: 'Run',
488-
icon: 'play',
489-
},
490-
]
491477
void provider.webview?.postMessage({
492478
command: chatRequestType.method,
493479
params: decryptedMessage,

0 commit comments

Comments
 (0)