feat(acp): expose resolved service tier per prompt - #1499
Open
smsunarto wants to merge 1 commit into
Open
Conversation
Amp-Thread-ID: https://ampcode.com/threads/T-019ff97b-d2f3-727c-8801-0fb21dcf7848 Co-authored-by: Amp <amp@ampcode.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Include bb's resolved service tier in every custom-agent ACP
session/promptrequest:{ "_meta": { "getbb.app/serviceTier": "default" } }The value is always
defaultorfast.Motivation
Custom ACP agents currently need to read bb's thread event API to find the resolved service tier. This change puts the final value directly on the prompt where it applies.
Behavior
defaultinstead of omitting the key.modelCli._metafield with an owner-qualified key.The value applies only to its prompt. Agents should not retain it as the default for later prompts. An explicit
defaultclears Fast mode from an earlier prompt.The value is a routing hint. It does not prove provider support, entitlement, or authorization.
Why prompt metadata?
ACP session configuration is agent-advertised and session-scoped. ACP does not define a standard service-tier option or option ID.
bb owns the Fast mode control and resolves its final value per prompt. Prompt metadata keeps that value atomic with the affected prompt and avoids a second session-state mechanism.
Session lifecycle
A setting change must not replace an active ACP session before a steer. This change defers session-level reconfiguration during active steers and applies it before the next normal turn.
This preserves the active turn and prevents stale steers while retaining CLI-backed model selection behavior.
Verification
@bb/agent-runtimesuite: 942 passed.