Skip to content

Conversation

@kylehickinson
Copy link
Collaborator

This allows associating specific tabs that have already been loaded by referencing them in the AI Chat WebUI input box

Resolves brave/brave-browser#50196

@kylehickinson kylehickinson self-assigned this Dec 8, 2025
@kylehickinson kylehickinson requested a review from a team as a code owner December 8, 2025 20:48
@kylehickinson kylehickinson added CI/skip-android Do not run CI builds for Android CI/skip-windows-x64 Do not run CI builds for Windows x64 CI/skip-macos-arm64 Do not run CI builds for macOS arm64 CI/skip-teamcity Do not run builds in TeamCity CI/skip-origin Do not run CI builds for Origin labels Dec 8, 2025
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.

I think this LGTM but definitely get someone who knows Swift to have a look 😄

One thing - I think we should just provide no tabs in private mode.

ProfileIOS::FromBrowserState(self.webState->GetBrowserState());
ai_chat::TabDataWebStateObserver::CreateForWebState(
self.webState,
CHECK_DEREF(ai_chat::TabTrackerServiceFactory::GetForProfile(profile)));
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Actually should probably get the service above and only create the TabDataWebStateObserver if the service is non-nil

This allows associating specific tabs that have already been loaded by referencing them in the AI Chat WebUI input box
@kylehickinson kylehickinson force-pushed the ios-aichat-associate-tab branch from bb664df to dad433c Compare December 9, 2025 15:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CI/skip-android Do not run CI builds for Android CI/skip-macos-arm64 Do not run CI builds for macOS arm64 CI/skip-origin Do not run CI builds for Origin CI/skip-teamcity Do not run builds in TeamCity CI/skip-windows-x64 Do not run CI builds for Windows x64

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add tab association support in Leo Web UI on iOS

3 participants