Skip to content

Use the cheapest default token when multiple are available#2990

Merged
gbrodman merged 1 commit intogoogle:masterfrom
gbrodman:defaultTokens
Mar 27, 2026
Merged

Use the cheapest default token when multiple are available#2990
gbrodman merged 1 commit intogoogle:masterfrom
gbrodman:defaultTokens

Conversation

@gbrodman
Copy link
Copy Markdown
Collaborator

@gbrodman gbrodman commented Mar 26, 2026

Previously we would just use the first one we found. This is a valid behavior, but we want to change it so that we apply the cheapest default if multiple are available (this way we avoid having to go back after the fact and give refunds).

this slightly breaks the abstraction of AllocationTokenFlowUtils only worrying about loading tokens (and not any business logic / doing anything with those tokens) but it's not too bad.


This change is Reviewable

Previously we would just use the first one we found. This is a valid
behavior, but we want to change it so that we apply the cheapest default
if multiple are available (this way we avoid having to go back after the
fact and give refunds).
Copy link
Copy Markdown
Collaborator

@weiminyu weiminyu left a comment

Choose a reason for hiding this comment

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

@weiminyu reviewed 16 files and all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on gbrodman).

@gbrodman gbrodman added this pull request to the merge queue Mar 27, 2026
Merged via the queue into google:master with commit a129a0d Mar 27, 2026
10 checks passed
@gbrodman gbrodman deleted the defaultTokens branch March 27, 2026 18:13
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.

2 participants