github / github/copilot-cli

Explicit code-review subagent model override is ignored

Đang mở
#4,462 0 bình luận 2 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

area:agents area:models
Ngôn ngữ chính
Shell
Star
11.2k
Fork
1.9k
Merge trung bình
14 giờ 16 phút
Pull request đã merge (30 ngày)
6

Mô tả

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

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Hướng nghiên cứu

Tái hiện vấn đề trên Windows x64 bằng /subagents và /review, sau đó kiểm tra ~/.copilot/session-state/*/events.jsonl. So sánh model code-review đã cấu hình với các event task và subagent.started. Được xem là hoàn tất khi model được cấu hình rõ ràng được sử dụng, hoặc mọi fallback đều được báo cáo rõ ràng cùng với model hiệu dụng của nó.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
shell
Lĩnh vực
ai, cli
Loại issue
Lỗi
Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức độ hoạt động
Ít trao đổi
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
45/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.