Skip to content

Commit 9a37abe

Browse files
authored
fix(amazonq): file list flicker (#6697)
## Problem File list in header flickers as message is rendering (see screen recording) https://github.com/user-attachments/assets/485c665f-cde1-4ed6-a316-8cea2ac63a49 ## Solution Update to latest mynah beta. Pass `undefined` to `header` in subsequent messages (as instructed by Mynah UI team) Note: no fix in changelog needed since feature hasnt yet been released --- - 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 9c2ae7d commit 9a37abe

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

package-lock.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -510,7 +510,7 @@
510510
"@aws-sdk/property-provider": "<3.696.0",
511511
"@aws-sdk/smithy-client": "<3.696.0",
512512
"@aws-sdk/util-arn-parser": "<3.696.0",
513-
"@aws/mynah-ui": "^4.23.0-beta.12",
513+
"@aws/mynah-ui": "^4.23.0-beta.14",
514514
"@gerhobbelt/gitignore-parser": "^0.2.0-9",
515515
"@iarna/toml": "^2.2.5",
516516
"@smithy/middleware-retry": "^3.0.0",

packages/core/src/amazonq/webview/ui/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ export const createMynahUI = (
351351
...(item.relatedContent !== undefined ? { relatedContent: item.relatedContent } : {}),
352352
...(item.followUp !== undefined ? { followUp: item.followUp } : {}),
353353
...(item.fileList !== undefined ? { fileList: item.fileList } : {}),
354-
...(item.header !== undefined ? { header: item.header } : {}),
354+
...(item.header !== undefined ? { header: item.header } : { header: undefined }),
355355
})
356356
if (
357357
item.messageId !== undefined &&

0 commit comments

Comments
 (0)