Skip to content

Conversation

@aseemxs
Copy link
Contributor

@aseemxs aseemxs commented Dec 5, 2025

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)

Description

Problem: External links in Amazon Q chat (e.g., in /help command) were not clickable in JetBrains IDEs. Links would not open when clicked.

Root Cause:

  1. The existing link click path (response-body-link-click) routes through handleFlareChatMessages which doesn't handle legacy commands
  2. Static help text contains raw tags that bypass mynah-ui's callback system entirely
  3. JCEF (embedded browser) doesn't automatically handle external link navigation like VSCode webviews do

Fix:

  • Added a global document-level click handler to intercept all external link clicks (http/https)
  • Added open-external-link command handler in BrowserConnector.kt to open links via BrowserUtil.browse()
  • Fixed link color (was incorrectly resolving to black due to CSS variable issue)

Known Limitation: cursor: pointer is set in CSS but may not visually change on hover due to JCEF off-screen rendering mode.

Checklist

License

I confirm that my contribution is made under the terms of the Apache 2.0 license.

- Add global click handler in main.ts to catch external link clicks
- Add 'open-external-link' command handler in BrowserConnector.kt
- Add link styling (blue color #3794ff) in Browser.kt and dark.scss

The existing link click path routes through handleFlareChatMessages which
doesn't handle legacy commands. This fix adds a direct path for http/https
links. Also fixes link color which was incorrectly set to black.

Note: cursor:pointer is set but may not visually change due to JCEF
off-screen rendering limitations.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant