Subagent started with unsupported model fails the whole session
Nadie ha tomado este issue todavía.
- Lenguaje dominante
- Shell
- Estrellas
- 11.2k
- Forks
- 1.9k
- Merge medio
- 14 h 16 min
- PR fusionados (30 d)
- 6
Descripción
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
Guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Línea de trabajo
Empieza rastreando cómo la CLI inicia los subagents y propaga los errores de ejecución del modelo. No se menciona ningún archivo ni prueba, así que localiza primero los puntos de entrada del manejo de errores de la sesión y los subagents; se considera terminado cuando un fallo de un modelo de subagent no compatible ya no termina la sesión principal y puede gestionarse para otro modelo.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- shell
- Área
- cli
- Tipo de issue
- Error
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Estado de actividad
- Tranquilo
- Claridad
- Bastante claro
- Aptitud para principiantes
- 42/100