Repository navigation
fix(platform): show the serving unpinned agent model picks actually use - #3057
Merged
Merged
Conversation
A model pick saved without a provider pin used to render as a clean
checkmark on whichever offered entry shared the bare id, while the run's
serving walk could pick (and bill) another provider entirely — on demo,
the editor showed the Anthropic subscription entry while every cron run
went through OpenRouter.
Make the display state the runtime's own answer instead of a lookalike:
- New previewUnpinnedAgentServing / previewUnpinnedTaskServing actions
ask each lane's real resolver with no pin (the walks intentionally
differ: two-pass for automation nodes, direct-only for task agents)
and return the serving a run would use right now, or the resolver's
own refusal as a result.
- The automation node editor and the project-agent dialog select the
resolved row and say "runs currently resolve to {provider} — pick an
entry to pin it"; findSelectedModel no longer falls back to an
id-only match, so a pinless pick can never impersonate a pinned one.
- The automation detail page shows a standing warning when the DEPLOYED
version carries pinless agent nodes (getAutomation reads the deployed
document, not the loaded one — saving alone never moves the trigger).
- The agent log names the serving a turn actually ran on (op.modelRef,
projected through both lanes' op queries), with the gateway ref's
doubled provider segment collapsed for display.
This was referenced Aug 25, 2026
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.
Problem
A model pick saved without a provider pin (every agent node and project agent saved before #3056, including the ones the pack seeder ships) rendered as a clean checkmark on whichever offered entry shared the bare model id — while the run's serving walk could pick, and bill, another provider entirely. On demo this misled directly: the editor showed
claude-fable-5 · Anthropic · Subscriptionas selected, while every cron run of the deployed (pinless) version went through OpenRouter and died on its 402. The display asserted a provider the runtime never promised.Principle
What the editor shows must be what a run would actually use. No id-lookalike preselects, no silent pin adoption, no shortcut that promotes the lookalike into a pick — the picker asks the runtime's own resolver and renders its answer.
Changes
previewUnpinnedAgentServing(automations) andpreviewUnpinnedTaskServing(tasks) actions call each lane's real resolver with no pin and return the serving a run would use right now —{ok, providerSlug, modelId, lane}— or the resolver's own refusal as a result. The lanes intentionally differ unpinned (two-pass walk vs direct-only), so each surface asks its own. Org-member gated, same as the model listing.findSelectedModelis exact-(provider, id) only now; a pinless pick can no longer impersonate a pinned one. Picking any entry pins it, unchanged.getAutomationreportsdeployedUnpinnedAgentNodesread from the DEPLOYED document (not the loaded one — a pinned draft over a pinless live version is exactly the trap), and the automation detail page shows a standing warning until a pinned version is deployed.modelRef, and the agent log renders “This turn ran on {provider}/{model}.” (gateway refs' doubled provider segment collapsed for display). Closes the run-side visibility gap: the OpenRouter detour is now one glance in the log.Verification
tsc, oxlint 1.79 (probe-confirmed engine), platform server suite 75 697 green, platform UI suite 3 370 green, packages/ui i18n suite 1 173 green (en/de/fr keys ship together).triage-glitchtip-issues, live v2 pinless): the detail warning names v2 and its node; the node editor shows the pick sitting onanthropic/claude-fable-5 · OpenRouter— the walk's actual answer — instead of the subscription lookalike; explicitly picking the subscription entry pins it (description clears, draft dirties); a past run's agent log reads “This turn ran on openrouter/anthropic/claude-fable-5.”, matching what actually billed.