Skip to content

[AI Chat] [Tab Focus] Use automatic model#34202

Merged
yrliou merged 2 commits intomasterfrom
tab_focus_use_automatic
Feb 27, 2026
Merged

[AI Chat] [Tab Focus] Use automatic model#34202
yrliou merged 2 commits intomasterfrom
tab_focus_use_automatic

Conversation

@yrliou
Copy link
Member

@yrliou yrliou commented Feb 26, 2026

Resolves brave/brave-browser#53153

Use automatic model instead of manually assign Haiku/Sonnet as server
side now supports triaging tab focus requests and send to Haiku/Sonnet
based on premium status, same as what we currently do on client side.

Replace the premium-status-based engine selection with a simpler
CreateTabOrganizationEngineIfNeeded() that always uses the
"chat-automatic" model key. This removes the async GetPremiumStatus
callback chain and intermediate methods.

Tests are also simplified as no premium status or model name checks are
needed anymore.

Reference server PR: https://github.com/brave/aichat/pull/1230 https://github.com/brave/aichat-ops/pull/1347

@yrliou yrliou self-assigned this Feb 26, 2026
@yrliou yrliou requested review from a team as code owners February 26, 2026 00:15
Copy link
Collaborator

@kylehickinson kylehickinson left a comment

Choose a reason for hiding this comment

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

iOS++

@github-actions
Copy link
Contributor

Chromium major version is behind target branch (145.0.7632.76 vs 146.0.7680.32). Please rebase.

@github-actions github-actions bot added the chromium-version-mismatch The Chromium version on the PR branch does not match the version on the target branch label Feb 26, 2026
Use automatic model instead of manually assign Haiku/Sonnet as server
side now supports triaging tab focus requests and send to Haiku/Sonnet
based on premium status, same as what we currently do on client side.

Replace the premium-status-based engine selection with a simpler
CreateTabOrganizationEngineIfNeeded() that always uses the
"chat-automatic" model key. This removes the async GetPremiumStatus
callback chain and intermediate methods.

Tests are also simplied as no premium status or model name checks are
needed anymore.
@yrliou yrliou force-pushed the tab_focus_use_automatic branch from 1108a88 to dc154f1 Compare February 26, 2026 22:57
@github-actions github-actions bot removed the chromium-version-mismatch The Chromium version on the PR branch does not match the version on the target branch label Feb 26, 2026
@yrliou yrliou enabled auto-merge (squash) February 27, 2026 02:10
@yrliou yrliou merged commit d303390 into master Feb 27, 2026
22 checks passed
@yrliou yrliou deleted the tab_focus_use_automatic branch February 27, 2026 02:38
@github-actions github-actions bot added this to the 1.89.x - Nightly milestone Feb 27, 2026
@brave-builds
Copy link
Collaborator

Released in v1.89.83

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.

[AI Chat] [Tab Focus] Use automatic model

6 participants