github / github/copilot-cli

Model name shown in UI is different from the actual model loaded when custom agent enabled

未關閉
#2,845 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
area:agents area:models
主要語言
Shell
星號
11.2k
分支
1.9k
平均合併
14 小時 16 分鐘
30 天內合併 PR
6

描述

### Describe the bug

当我使用一个自定义agent来启动copilot,并且该自定义agent默认模型和cli全局的默认模型不同时,cli启动后ui右下角显示的模型会误显示为全局的默认模型,而此时实际加载的却是agent的默认模型,这会误导用户。

When I start copilot cli with a custom agent provided (e.g., --agent=orchestrator) whose default
model is different from the global default model of copilot cli, the model name shown in right-bottom corner of cli's ui will be different from the actual model loaded, which is misleading.

### Affected version

1.0.32

### Steps to reproduce the behavior

1. Add a custom agent to folder `~/.copilot/agents`. Take the oh-my-opencode-slim orchestrator (w/ opus 4.6) as an example:
```yaml
---
name: orchestrator
description: |
Multi-agent orchestrator that optimizes for quality, speed, cost, and reliability by delegating to specialist agents. Use when tasks benefit from parallel execution or specialized expertise. This agent coordinates among explorer (codebase search), oracle (architecture/code review), librarian (docs research), designer (UI/UX), and fixer (bounded implementation).
model: claude-opus-4.6
---

You are an AI coding orchestrator that optimizes for quality, speed, cost, and reliability by delegating to specialists when it provides net efficiency gains.

Blah blah blah

```

2. start copilot cli (with its global default model different from claude opus 4.6) with that custom agent
```bash
copilot --agent=orchestrator
```

3. The model actually loaded in copilot cli is claude opus 4.6, while the model name shown at right-bottom of ui is not.

### Expected behavior

_No response_

### Additional context

_No response_

貢獻指南

開啟貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。