github / github/copilot-cli

Explicit code-review subagent model override is ignored

Abierto
#4,462 0 comentarios 2 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

area:agents area:models
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

The built-in code-review subagent is configured to use gpt-5.6-luna, but Copilot CLI starts it with gpt-5.6-sol.

The parent session was using gpt-5.6-luna, and the configured per-agent model was also gpt-5.6-luna. The configured value is silently ignored or replaced.

This matters because the selected subagent model can affect review quality, model availability, and AI Credit consumption.

Image Image Image

Observed evidence

The effective configuration contains:

{
  "subagents": {
    "agents": {
      "code-review": {
        "model": "gpt-5.6-luna",
        "effortLevel": "high",
        "contextTier": "default"
      }
    }
  }
}

The parent assistant was using gpt-5.6-luna, but the task request and subagent event selected gpt-5.6-sol:

{
  "type": "tool.execution_start",
  "data": {
    "toolName": "task",
    "arguments": {
      "agent_type": "code-review",
      "model": "gpt-5.6-sol"
    },
    "model": "gpt-5.6-luna"
  }
}
{
  "type": "subagent.started",
  "data": {
    "agentName": "code-review",
    "model": "gpt-5.6-sol"
  }
}
Affected version

1.0.79

Steps to reproduce the behavior

The same behavior occurred in repeated reviews from the same session.

  1. On Windows x64, configure the built-in code-review subagent to use gpt-5.6-luna through /subagents.
  2. Start a Copilot CLI session and select gpt-5.6-luna.
  3. Run /review and request a code review.
  4. Inspect the session timeline or the corresponding file under ~/.copilot/session-state/*/events.jsonl.
  5. Observe that the code-review subagent is started with gpt-5.6-sol.
Expected behavior

The code-review subagent should use the explicitly configured gpt-5.6-luna model.

If the requested model cannot be used, Copilot CLI should report the fallback clearly and identify the effective model instead of silently selecting another model.

Additional context
  • Operating system: Windows 11 Pro
  • Architecture: x64
  • Shell: command prompt

The global settings file also contains a default model of gpt-5.6-terra, but the affected session was explicitly switched to gpt-5.6-luna. This is therefore not simply a mismatch with the global default model.

The behavior appears related to https://github.com/github/copilot-cli/issues/4377

Guía de contribución

Abrir la guía de contribución

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Línea de trabajo

Reproduce el problema en Windows x64 usando /subagents y /review, y luego inspecciona ~/.copilot/session-state/*/events.jsonl. Compara el modelo de revisión de código configurado con los eventos task y subagent.started. Se considera terminado cuando se usa el modelo configurado explícitamente o cualquier fallback se informa claramente junto con su modelo efectivo.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
shell
Área
ai, cli
Tipo de issue
Error
Dificultad
4/5
Tiempo estimado
3-5 días
Estado de actividad
Tranquilo
Claridad
Bastante claro
Aptitud para principiantes
45/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.