Subagent started with unsupported model fails the whole session
Personne n'a encore pris cette issue.
- Langage dominant
- Shell
- Étoiles
- 11.2k
- Forks
- 1.9k
- Merge moyen
- 14 h 16 min
- PR mergées (30 j)
- 6
Description
Describe the bug
In a long running agent session on autopilot (~2 hours), with plenty use of subagents, the main agent was Opus 5, but started gemini-3.6-flash when building and executing tasks. Later during that same autopilot session gemini-3.6-flash was no longer supported. The main agent attempts to launch gemini-3.6-flash agent again, which results in this error:
Execution failed: CAPIError: 400 The requested model is not supported.
This breaks the entire session and the main agent stops. Instead the main agent should have seen that error, been able to react on it and try to find a different model it could use (e.g. Haiku, GPT Luna), and launch the subagent
Affected version
GitHub Copilot CLI 1.0.79.
Steps to reproduce the behavior
- Have a session running where you instruct the main agent to launch subagents using a model that you are going to retract from the pool of models
- On your side, change which models are supported to ban a model that you made the session use
- See the subagent fail and the main agent fail together
Expected behavior
The main agent should have seen that error, been able to react on it and try to find a different model it could use (e.g. Haiku, GPT Luna), and launch the subagent
Additional context
No response
Guide de contribution
Ouvrir 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.
Piste de recherche
Commencez par suivre la manière dont la CLI lance les subagents et propage les erreurs d’exécution du modèle. Aucun fichier ni test n’est indiqué, commencez donc par localiser les points d’entrée de la gestion des erreurs de la session et des subagents ; le travail est terminé lorsqu’un échec dû à un modèle de subagent non pris en charge ne met plus fin à la session principale et peut être géré pour un autre modèle.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- shell
- Domaine
- cli
- Type d'issue
- Bug
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Activité
- Calme
- Clarté
- Plutôt claire
- Accessibilité débutants
- 42/100