File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -5229,6 +5229,13 @@ describe("chat model controls", () => {
52295229 contextWindow : 1_000_000 ,
52305230 agentRuntime : { id : "google-gemini-cli" , source : "model" } ,
52315231 } ,
5232+ {
5233+ id : "gpt-5.6-terra" ,
5234+ name : "GPT-5.6 Terra" ,
5235+ provider : "openai" ,
5236+ contextWindow : 1_000_000 ,
5237+ agentRuntime : { id : "openclaw" , source : "implicit" } ,
5238+ } ,
52325239 ] ,
52335240 } ) ;
52345241 const container = renderModelControls ( state ) ;
@@ -5243,6 +5250,9 @@ describe("chat model controls", () => {
52435250 // Known CLI runtime ids map to their product labels, not capitalized ids.
52445251 expect ( metaFor ( "anthropic/claude-opus-4-5" ) ) . toBe ( "200k · Claude CLI" ) ;
52455252 expect ( metaFor ( "google/gemini-3-pro" ) ) . toBe ( "1M · Gemini CLI" ) ;
5253+ // Implicitly resolved runtimes stay unlabeled; only operator-pinned
5254+ // (source model/provider) rows carry the runtime meta.
5255+ expect ( metaFor ( "openai/gpt-5.6-terra" ) ) . toBe ( "1M" ) ;
52465256 } ) ;
52475257
52485258 it ( "marks chat-only models in the active control and picker" , ( ) => {
Original file line number Diff line number Diff line change @@ -200,7 +200,13 @@ export function renderChatModelControls(props: ChatModelControlsProps) {
200200 const isDefault =
201201 defaultSelectable && option . value . trim ( ) . toLowerCase ( ) === normalizedDefaultModel ;
202202 const catalogEntry = resolveChatModelCatalogEntry ( option . value , props . modelCatalog ) ;
203- const agentRuntimeId = catalogEntry ?. agentRuntime ?. id . trim ( ) ;
203+ // Runtime meta labels only operator-pinned runtimes (models/provider config);
204+ // implicit/default resolution stays unlabeled so ordinary rows stay clean.
205+ const agentRuntime = catalogEntry ?. agentRuntime ;
206+ const agentRuntimeId =
207+ agentRuntime && ( agentRuntime . source === "model" || agentRuntime . source === "provider" )
208+ ? agentRuntime . id . trim ( )
209+ : undefined ;
204210 return {
205211 commitValue : isDefault ? "" : option . value ,
206212 ...( agentRuntimeId ? { agentRuntimeId } : { } ) ,
You can’t perform that action at this time.
0 commit comments