-
Notifications
You must be signed in to change notification settings - Fork 1.1k
[iOS] [AI Chat] Support associating open tabs #32737
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
📋 Code Owners Summary12 file(s) changed, 12 with assigned owners 1 team(s) affected: Owners and Their Files
|
fallaciousreasoning
left a comment
There was a problem hiding this 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.
ios/brave-ios/Sources/Brave/Frontend/Browser/BrowserViewController/BVC+TabManagerDelegate.swift
Outdated
Show resolved
Hide resolved
| ProfileIOS::FromBrowserState(self.webState->GetBrowserState()); | ||
| ai_chat::TabDataWebStateObserver::CreateForWebState( | ||
| self.webState, | ||
| CHECK_DEREF(ai_chat::TabTrackerServiceFactory::GetForProfile(profile))); |
There was a problem hiding this comment.
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
bb664df to
dad433c
Compare
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