fix(amazonq): enable external links to open in system browser #6142
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Types of changes
Description
Problem:
External links in Amazon Q chat responses and footer (e.g., in /help command responses) were not opening when clicked in JetBrains IDEs.
Root Cause:
The existing link click handlers (
CHAT_LINK_CLICK,CHAT_INFO_LINK_CLICK,CHAT_SOURCE_LINK_CLICK) were broken due to two issues:node.params.linkon the client sidelink.foregroundtheme key which resolves to black in some themesFix:
node.params.linkBrowserUtil.browse()instead of delegating to LSP serverresponse-body-link-click,footer-info-link-click,source-link-click)linkinstead oflink.foreground) so links display in proper blue coloracross all themes
Screen.Recording.2025-12-11.at.1.14.26.PM.mov
Impact:
Checklist
CHANGELOG if the change is customer-facing
in the IDE.
License
I confirm that my contribution is made under the terms of the Apache 2.0 license.