Native Claude subagents show the parent instance and a raw model slug when another instance lists the model
Les mainteneurs répondent en général sous 1 jour
Évaluation
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Accessibilité débutants
- 25/100
- Type d'issue
- Bug
- Clarté
- Clairement spécifiée
- Activité
- Active
- Stack technique
- typescript
- Domaine
- frontend
Piste de recherche
Start with apps/web/src/components/chat/V2LifecycleRow.tsx (provider lookup by providerInstanceId) and packages/client-runtime/src/state/subagentDisplay.ts (resolveSelectableModel, catalogModel, formatModelSlugName fallback), then apps/web/src/components/chat/SubagentTooltipContent.tsx. Done means a native subagent whose model is only listed by another instance of the same driver shows that model's configured name and instance name and badge, while the no-match and multi-match cases keep current behavior. A linked open pull request (#36204) already targets this, so check it before starting.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
Before submitting
- I searched existing issues and did not find a duplicate.
- I included enough detail to reproduce or investigate the problem.
Area
apps/web
Steps to reproduce
- Add two
claudeAgentinstances that use the same Claude Code gateway (ANTHROPIC_BASE_URL):claudeAgent, display name "Claude Code", with only the built-in Claude models.claudeAgent-openai, display name "OpenAI", with the custom model{ "slug": "gpt-6.1-sol", "name": "GPT 6.1 Sol" }.
- Add a Claude Code agent definition with
model: gpt-6.1-solin its frontmatter, for examplegpt-6.1-sol-worker. - In a thread on the
claudeAgentinstance, let Claude start a subagent of that type with the Agent tool. - Hover the subagent row in the "N subagents" card.
Expected behavior
The row shows the model the subagent runs on with its configured name and the instance that lists that model: "GPT 6.1 Sol · OpenAI", with the OpenAI instance's badge.
Actual behavior
The row shows "GPT-6.1-Sol · Claude Code" with the Claude Code instance's badge:
- The model label is the raw slug in title case, not the configured name "GPT 6.1 Sol".
- The instance name and badge are those of the parent thread's instance, so a GPT model reads as part of the Claude group.
Cause
A native subagent keeps its parent's providerInstanceId. The row looks up the provider by that ID, and resolveSubagentMetadata looks for the model only in that provider's catalog. When the parent's catalog does not contain the slug, the label falls back to formatModelSlugName. The tooltip then takes the instance name and badge from the same parent instance. Code references are in the notes below.
Suggestion
When the parent instance's catalog does not contain the subagent's model, look the slug up in the other instances that use the same driver. If exactly one instance lists it, use that instance's model name, display name, accent color, and (after #26236) icon. Keep the current behavior when no instance or more than one instance lists the slug.
Related: per-instance icons are tracked in discussion #7366 and PR #26236. This issue is only about which instance and model name a native subagent row shows.
Impact
Cosmetic issue
Version or commit
0.1.10-nightly.20261111.4544 (server on Linux; web and desktop clients on Windows and macOS). The code is unchanged on main at f313d0a6cb.
Notes
References at main f313d0a6cb:
apps/web/src/components/chat/V2LifecycleRow.tsx:567-573:provider={providers.find((provider) => provider.instanceId === props.providerInstanceId)}. For aprovider_nativesubagent,providerInstanceIdis the parent's instance.packages/client-runtime/src/state/subagentDisplay.ts:70-79:resolveSelectableModelandcatalogModelsearch onlyinput.provider.models. On a miss, the label isformatModelSlugName(model).apps/web/src/components/chat/SubagentTooltipContent.tsx:107-139: the icon, accent color, and${modelLabel} · ${entry.displayName}all come fromprops.provider.instanceId.
The subagent record reports model: "gpt-6.1-sol", and the slug is present as a custom model in the claudeAgent-openai catalog, so a lookup across instances would find it.
- Langage dominant
- TypeScript
- Étoiles
- 24.8k
- Forks
- 6.4k
- Merge moyen
- 59 min
- PR mergées (30 j)
- 418
Préparer son environnement
Lance le conteneur de développement du projet dans votre navigateur, avec votre propre compte GitHub.
- Aucun Dockerfile ni fichier Docker Compose
- Propose un modèle de pull request
- Lire le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de pingdotgg/t3code
-
Difficulté 2/5 1-3 heures Accessibilité débutants 66/100
Les mainteneurs répondent en général sous 1 jour
-
via-triage
Difficulté 2/5 1-3 heures Accessibilité débutants 82/100
Les mainteneurs répondent en général sous 1 jour
-
[Bug]: MCP App inline frames never go below 80px, so compact apps get blank space under themOuverte
Difficulté 2/5 Une demi-journée Accessibilité débutants 68/100
Les mainteneurs répondent en général sous 1 jour
-
Question card options show LaTeX as raw source, though the question text renders itPeut-être pris Une pull request liée à cette issue est ouverte ou déjà fusionnée. Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 76/100
Les mainteneurs répondent en général sous 1 jour
-
[Bug]: Settings inheritance popover shows raw slugs for branch naming, default permissions and response streamingPeut-être pris @juliusmarminge l’a pris il y a 1 jour. Ouvertevouch:denounced
Difficulté 2/5 1-3 heures Accessibilité débutants 84/100
Les mainteneurs répondent en général sous 1 jour
Toutes les issues de pingdotgg/t3code
Issues similaires
-
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
pieterjanscheir/belgica#201 ·
Les mainteneurs répondent en général sous 1 jour
-
No skip link to the main contentOuverteaccessibility
Difficulté 2/5 1-3 heures Accessibilité débutants 66/100
numerique-gouv/lasuite-landingpage#311 ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 75/100
oxc-project/tsgolint#1362 ·
Les mainteneurs répondent en général sous 1 jour
-
bug external xai
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
langchain-ai/langchain#41854 ·
Les mainteneurs répondent en général sous 1 jour
-
ready-for-agent
Difficulté 1/5 1-3 heures Accessibilité débutants 72/100
nemchik/biome-plugin-suitescript#137 ·
Les mainteneurs répondent en général sous 1 jour