github / github/copilot-cli

Subagent started with unsupported model fails the whole session

Aperta
#4,427 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

area:agents area:models
Lingua principale
Shell
Stelle
11.2k
Fork
1.9k
Merge medio
14h 16m
PR unite (30g)
6

Descrizione

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
  1. 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
  2. On your side, change which models are supported to ban a model that you made the session use
  3. 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

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Direzione di ricerca

Inizia tracciando il modo in cui la CLI avvia i subagents e propaga gli errori di esecuzione del modello. Non sono indicati file o test, quindi individua prima i punti di ingresso della gestione degli errori della sessione e dei subagents; il lavoro è completato quando un errore dovuto a un modello di subagent non supportato non termina più la sessione principale e può essere gestito per un altro modello.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
shell
Ambito
cli
Tipo di issue
Bug
Difficoltà
4/5
Tempo stimato
3-5 giorni
Stato di attività
Tranquilla
Chiarezza
Abbastanza chiara
Idoneità per principianti
42/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.