Repository navigation
feat(studio): show provider display names from the BFF - #2331
Merged
Merged
Conversation
peppescg
force-pushed
the
feat/studio-provider-display-names-2260
branch
from
October 15, 2026 08:29
c9540a3 to
4eb9b8d
Compare
Base automatically changed from
feat/studio-settings-phone-index-2261
to
main
October 15, 2026 08:56
kantord
force-pushed
the
feat/studio-provider-display-names-2260
branch
from
October 15, 2026 08:56
4eb9b8d to
a0d67ae
Compare
kantord
approved these changes
Oct 15, 2026
Pin how Studio names a provider that has no display name, such as an operator-defined gateway. The Settings provider row, the chat model menu and phone sheet (group labels and search), and a live chat's context usage label all title-case the provider ID. The provider page keeps its raw Provider ID fact and model list. Also pin the BFF side: the provider and model inventory fields in both settings responses, over HTTP too, and the session detail's resolved model, including against a spawned mecated --mock. Each pin must pass unchanged once provider display names land. Refs #2260 Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Studio named a provider by title-casing its ID, so `openai` read "Openai". The daemon and the SDK identify a provider only by ID, so the BFF now maps each ID the daemon registers to its name (OpenAI, Anthropic, OpenRouter, and the rest) and title-cases any other ID, as Studio did before. The contracts carry the name: `displayName` on each provider entry, and `providerDisplayName` on each inventory model and on a session's resolved model. Settings > Providers, the provider page heading, the chat model menu and phone sheet, and a live chat's context usage label show it. The model filter matches a provider's name or its ID. The web app's three title-casing helpers are gone. The provider page heading shows the name and wraps between words; the raw ID stays in the Provider ID fact. Closes #2260 Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
peppescg
force-pushed
the
feat/studio-provider-display-names-2260
branch
from
October 15, 2026 13:12
a0d67ae to
f4369bd
Compare
Merged
2 tasks
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.
Part of a 4-PR stack: #2329 → #2330 → #2331 → #2332. Review in any order; merge bottom-up.
Summary
Studio named a provider by title-casing its ID, so
openairead "Openai" andopenrouterread "Openrouter". The daemon and the SDK identify a provider only by ID, so Studio's BFF now maps each ID the daemon registers to its proper name, and the web app shows the name it receives. An ID outside the map, such as an operator-defined provider, is title-cased exactly as before, so those providers look the same.What changed
apps/server). A newproviderDisplayName(id)insrc/mecatl/provider-names.tsholds the one map. Both settings responses and a session's detail use it.apps/contracts). The provider settings responses carrydisplayNameon each provider entry andproviderDisplayNameon each inventory model. The session detail's resolvedmodelcarriesproviderDisplayNametoo.openapi.jsonand the generated client are regenerated.apps/web). These surfaces now show the BFF's name:break-words), as Studio's other names do.break-allsuits an unbroken ID but can split a name mid-word on a phone.Where the names come from
The daemon reports no display name for a provider. In
ListModels,ModelInfo.display_namenames models;ProviderStatuscarriesprovider_id,state,hint,model_countand two default-model flags, but no name. So the BFF maps the provider IDs in the daemon's registry (internal/app/registry.go, listed indocs/architecture/providers.md):anthropicmockopenaiopenai-codexopencodeopenrouteropenrouter-anthropictoolhivetoolhive-anthropicThe registry also reserves
model-router(delegation discovery only, never an inference provider) andwebsearch(web search settings), but neither names a model provider, so the map leaves them out. Any other ID falls back to the title-cased ID. Having the daemon report a display name per provider, so that operator-defined providers could carry their own name, would be a follow-up. The BFF would then prefer that name and keep this map as the fallback.Difference from the prototype
lib/provider-label.ts). Studio keeps one map, in the BFF, because the BFF owns Studio's contracts. The web app has no map.mock"Offline (mock)" andtoolhive"ToolHive gateway". Studio uses the plain names "Mock" and "ToolHive". The designer is to confirm these two names. The prototype's map also lists IDs the daemon never registers (azure,bedrock,google,vertex) and lacksopenai-codex,opencodeand the-anthropicsiblings.model-picker.tsx), so it reads "Openai" there while its Settings page reads "OpenAI". Studio shows the BFF's name on every surface.No regression
Pins first. Commit 1 (
ed4989ac7) adds pins that pass on the base and pass unchanged on the head:Web (
provider-names.pinning.test.tsx). For an operator-defined provider (team-gateway), these keep "Team Gateway":The provider page keeps its Provider ID fact and model list.
BFF. Every provider and model field and value in both settings responses, over HTTP too, plus the session detail's resolved model. The integration test does the same against a spawned
mecated --mock.New tests.
constructorare treated as ordinary IDs.Modified tests. No assertion was removed or loosened.
settings-alignment.test.tsxasserted that the row read "Openai", the bug this fixes. It now asserts that the name element reads exactly "OpenAI".mecatl/settings.test.ts, one inroutes/settings.test.ts, one inmecatl/chat.test.ts.chat-composer*.test.tsx,chat-workspace.integration.test.tsx,settings-*.test.tsx(including Studio settings: replace the phone section select with the prototype's section index #2261's newsettings-index.test.tsx),routes/*.test.ts.session-surfaces.*.test.tsx,session-inspection.test.tsx, and the e2e specssettings-layout,phone-overflow,side-panel-shellandcomposer-execution-line. Without the field, the usage label would read "model · undefined".Mutation proof. 15 mutations, each killed by at least one test:
openaifrom the map; return the raw ID as the fallback; skip the name on status rows, synthesised rows, models, or the session detail. The session-detail mutation is also caught by the integration suite.With the base's production code restored under the head's tests, 13 display-name tests fail and every pin passes.
Screenshots
Before is
main(42b933fb4) and After is29f12edbc, this PR's change before the stack rebase; the rebasedf4369bd0ecarries the same change plus one fixture line in #2261'ssettings-index.test.tsx. Both trees render the same offline fixtures, and the prototype isstack-08. Red boxes mark before/after differences.Settings > Providers. "Openai" and "Openrouter" become "OpenAI" and "OpenRouter", matching the prototype's "OpenAI". "Anthropic" and the operator-defined "Team Gateway" (no map entry, so title-cased) are unchanged. The phone frames predate the stack, so they still show the native section picker that #2261 (below this PR) replaces.
Settings > Providers: desktop dark, phone light and dark
Provider page. The heading changes from the raw ID "openai" to "OpenAI", and the Provider ID fact keeps "openai". The prototype names the provider the same way ("OpenAI models"); its page is a models table, a layout this PR doesn't adopt.
Provider page: desktop dark, phone light and dark
Chat model menu. On desktop, the group headers "Openai" and "Openrouter" become "OpenAI" and "OpenRouter". This deliberately differs from the prototype, whose model menu title-cases the ID and reads "Openai" (
model-picker.tsx); After matches the prototype's own Settings name instead. The phone sheet uppercases group headers, so "OPENAI" looks the same before and after (0 changed pixels); it matches the prototype's sheet.Chat model menu: desktop dark, phone light and dark
Live chat usage label (phone sheet). "gpt-5 · Openai" becomes "gpt-5 · OpenAI". The bar and "~25% of context" move about 2 px right because the name is wider; nothing below the line changes. The prototype's sheet has no usage line, so its column shows the closest equivalent, its composer options sheet. On desktop the label appears only in the tooltip, so there is no desktop frame.
Usage label: phone light and dark
Each tree was captured twice. Between the two captures of the same tree, at most 3 pixels differ in any frame, so every boxed change is real.
Gates
#2329 and #2330 have merged, so this PR is now based on
main(4aa238f3c), and this branch isf4369bd0e. All gates ran through the shared gate lock.f4369bd0e)main(see below)mecated --mock)The one server failure is
routes/knowledge.test.ts> "declares the transport errors the validation hook and error handler can return". It expects 15 knowledge operations, andmainnow has 16 after #2155 added the skill files route.main's own CI fails the same way at4aa238f3c; #2355 fixes it. This PR does not touch the knowledge routes.The browser journeys ran at the top of the stack (#2332): 170 tests: 132 passed, 38 skipped. This PR adds no journey.
Closes #2260
Part of #2210
🤖 Generated with Claude Code