Skip to content

[AI Chat]: Fix Agent Mode Learn More Link Click#34618

Open
Douglashdaniel wants to merge 1 commit intomasterfrom
ai-chat-fix-agent-learn-more-link-click
Open

[AI Chat]: Fix Agent Mode Learn More Link Click#34618
Douglashdaniel wants to merge 1 commit intomasterfrom
ai-chat-fix-agent-learn-more-link-click

Conversation

@Douglashdaniel
Copy link
Contributor

Description

Fixes a bug where clicking Learn more for Agent Mode in the input box would do nothing.

Resolves brave/brave-browser#53381

Screen.Recording.1.mov

@Douglashdaniel Douglashdaniel self-assigned this Mar 10, 2026
@github-actions github-actions bot added the CI/storybook-url Deploy storybook and provide a unique URL for each build label Mar 10, 2026
@brave-builds
Copy link
Collaborator

A Storybook has been deployed to preview UI for the latest push

@Douglashdaniel Douglashdaniel force-pushed the ai-chat-fix-agent-learn-more-link-click branch from 9b97caa to e2f541a Compare March 10, 2026 22:11
Copy link
Contributor

@fallaciousreasoning fallaciousreasoning left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm % question about whether this works as a normal link

props.context.openURL(mojomUrl)
}, [props.context.openURL])
aiChatContext.api.uiHandler.openURL(mojomUrl)
}, [aiChatContext.api.uiHandler])
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey, I think you might not need to go through openURL anymore - can you check if this just works as a normal <a> tag?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested, does not work in Sidebar unfortunately.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Huh weird, because other links do (like the inline search urls).

Copy link
Member

@petemill petemill left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm ok with this if we're ok breaking the ai_rewriter page, since it does not have a useAIChat() ability, and that's the reason Input specifies all its props.
(Though we should remove ai_rewriter if that's the case)
Was it a challenge fixing the openURL prop?

@fallaciousreasoning
Copy link
Contributor

I'd be surprised if AI rewriter is working 😆

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CI/storybook-url Deploy storybook and provide a unique URL for each build

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Agent AI] Learn more on the disclaimer message doesn't open support page link in a new tab

5 participants