Skip to content

Commit 7c91b68

Browse files
authored
Merge branch 'feature/agentic-chat' into feature/agentic-chat
2 parents 6ded045 + b5cd5c3 commit 7c91b68

29 files changed

+654
-492
lines changed

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"date": "2025-04-11",
3+
"version": "1.58.0",
4+
"entries": [
5+
{
6+
"type": "Bug Fix",
7+
"description": "inline chat activates properly when using 'aws.experiments.amazonqChatLSP' feature flag"
8+
},
9+
{
10+
"type": "Bug Fix",
11+
"description": "Amazon Q Chat: code blocks in responses flicker, switching tabs during answer streaming makes expand button disappear"
12+
},
13+
{
14+
"type": "Bug Fix",
15+
"description": "Amazon Q Chat: tab bar buttons disappear when closing non-active tab"
16+
},
17+
{
18+
"type": "Bug Fix",
19+
"description": "Amazon Q Chat: chat history list does not truncate markdown"
20+
}
21+
]
22+
}

packages/amazonq/.changes/next-release/Bug Fix-45379b8c-1faa-4b04-951a-26e234c6dc03.json

Lines changed: 0 additions & 4 deletions
This file was deleted.

packages/amazonq/.changes/next-release/Bug Fix-9d840c3e-80a2-45a0-961f-8441b2339860.json

Lines changed: 0 additions & 4 deletions
This file was deleted.

packages/amazonq/.changes/next-release/Bug Fix-e8dc0bd0-b232-429c-b16a-f3bf993b19b4.json

Lines changed: 0 additions & 4 deletions
This file was deleted.

packages/amazonq/.changes/next-release/Bug Fix-ee90e4d2-aa78-403f-8b58-1464c6419778.json

Lines changed: 0 additions & 4 deletions
This file was deleted.

packages/amazonq/CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
## 1.58.0 2025-04-11
2+
3+
- **Bug Fix** inline chat activates properly when using 'aws.experiments.amazonqChatLSP' feature flag
4+
- **Bug Fix** Amazon Q Chat: code blocks in responses flicker, switching tabs during answer streaming makes expand button disappear
5+
- **Bug Fix** Amazon Q Chat: tab bar buttons disappear when closing non-active tab
6+
- **Bug Fix** Amazon Q Chat: chat history list does not truncate markdown
7+
18
## 1.57.0 2025-04-10
29

310
- **Bug Fix** Fix bug where generate fix does not work

packages/amazonq/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "amazon-q-vscode",
33
"displayName": "Amazon Q",
44
"description": "The most capable generative AI-powered assistant for building, operating, and transforming software, with advanced capabilities for managing data and AI",
5-
"version": "1.58.0-SNAPSHOT",
5+
"version": "1.59.0-SNAPSHOT",
66
"extensionKind": [
77
"workspace"
88
],

packages/core/resources/css/amazonq-webview.css

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,3 @@ body .mynah-card-body h4 {
128128
div.mynah-card.padding-large {
129129
padding: var(--mynah-sizing-4) var(--mynah-sizing-3);
130130
}
131-
132-
div.mynah-chat-items-container .mynah-chat-item-card.no-padding > .mynah-card {
133-
padding: 0;
134-
}

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

Lines changed: 48 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,33 @@ export class Connector extends BaseConnector {
179179
}
180180
}
181181

182+
private processToolMessage = async (messageData: any): Promise<void> => {
183+
if (this.onChatAnswerUpdated === undefined) {
184+
return
185+
}
186+
const answer: CWCChatItem = {
187+
type: messageData.messageType,
188+
messageId: messageData.messageID ?? messageData.triggerID,
189+
body: messageData.message,
190+
followUp: messageData.followUps,
191+
canBeVoted: messageData.canBeVoted ?? false,
192+
codeReference: messageData.codeReference,
193+
userIntent: messageData.contextList,
194+
codeBlockLanguage: messageData.codeBlockLanguage,
195+
contextList: messageData.contextList,
196+
title: messageData.title,
197+
buttons: messageData.buttons,
198+
fileList: messageData.fileList,
199+
header: messageData.header ?? undefined,
200+
padding: messageData.padding ?? undefined,
201+
fullWidth: messageData.fullWidth ?? undefined,
202+
codeBlockActions: messageData.codeBlockActions ?? undefined,
203+
rootFolderTitle: messageData.rootFolderTitle,
204+
}
205+
this.onChatAnswerUpdated(messageData.tabID, answer)
206+
return
207+
}
208+
182209
private storeChatItem(tabId: string, messageId: string, item: ChatItem): void {
183210
if (!this.chatItems.has(tabId)) {
184211
this.chatItems.set(tabId, new Map())
@@ -238,6 +265,11 @@ export class Connector extends BaseConnector {
238265
return
239266
}
240267

268+
if (messageData.type === 'toolMessage') {
269+
await this.processToolMessage(messageData)
270+
return
271+
}
272+
241273
if (messageData.type === 'editorContextCommandMessage') {
242274
await this.processEditorContextCommandMessage(messageData)
243275
return
@@ -370,45 +402,43 @@ export class Connector extends BaseConnector {
370402
}
371403
break
372404
case 'run-shell-command':
373-
answer.header = {
374-
body: 'shell',
375-
status: {
405+
if (answer.header) {
406+
answer.header.status = {
376407
icon: 'ok' as MynahIconsType,
377408
text: 'Accepted',
378409
status: 'success',
379-
},
410+
}
411+
answer.header.buttons = []
380412
}
381413
break
382414
case 'reject-shell-command':
383-
answer.header = {
384-
body: 'shell',
385-
status: {
415+
if (answer.header) {
416+
answer.header.status = {
386417
icon: 'cancel' as MynahIconsType,
387418
text: 'Rejected',
388419
status: 'error',
389-
},
420+
}
421+
answer.header.buttons = []
390422
}
391423
break
392424
case 'confirm-tool-use':
393-
answer.header = {
394-
icon: 'shell' as MynahIconsType,
395-
body: 'shell',
396-
status: {
425+
if (answer.header) {
426+
answer.header.status = {
397427
icon: 'ok' as MynahIconsType,
398428
text: 'Accepted',
399429
status: 'success',
400-
},
430+
}
431+
answer.header.buttons = []
401432
}
402433
break
403434
case 'reject-tool-use':
404-
answer.header = {
405-
icon: 'shell' as MynahIconsType,
406-
body: 'shell',
407-
status: {
435+
if (answer.header) {
436+
answer.header.status = {
408437
icon: 'cancel' as MynahIconsType,
409438
text: 'Rejected',
410439
status: 'error',
411-
},
440+
}
441+
answer.header.buttons = []
412442
}
413443
break
414444
default:

0 commit comments

Comments
 (0)