Skip to content

Commit 8a02d60

Browse files
authored
fix(amazonq): agent tabs open with prompt options (aws#7265)
## Problem Inconsistent behavior when opening agent tabs (/review, /doc, etc). When the tab is reused it keeps the prompt input options visible, but when a new tab is created it doesn't. https://github.com/user-attachments/assets/2ff7264f-f7a3-46f6-9a34-e29835768833 ## Solution Set `promptInputOptions` to empty when an existing tab is reused. --- - Treat all work as PUBLIC. Private `feature/x` branches will not be squash-merged at release time. - Your code changes must meet the guidelines in [CONTRIBUTING.md](https://github.com/aws/aws-toolkit-vscode/blob/master/CONTRIBUTING.md#guidelines). - License: I confirm that my contribution is made under the terms of the Apache 2.0 license.
1 parent 529f833 commit 8a02d60

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"type": "Bug Fix",
3+
"description": "Named agent tabs sometimes open with unnecessary input options"
4+
}

packages/core/src/amazonq/webview/ui/quickActions/handler.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -355,6 +355,8 @@ export class QuickActionHandler {
355355
loadingChat: true,
356356
cancelButtonWhenLoading: false,
357357
})
358+
} else {
359+
this.mynahUI.updateStore(affectedTabId, { promptInputOptions: [] })
358360
}
359361

360362
if (affectedTabId && this.isHybridChatEnabled) {

0 commit comments

Comments
 (0)