Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Enterprise managed `model` setting is received but not applied in the Copilot app and non-interactive CLI

オープン
#4,959 コメント 0 件 リアクション 2 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
65/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
rust, shell

調査の方向性

The issue is in the runtime's model resolution path for non-interactive sessions. Start by examining the log output and the managed settings loading code, likely in a Rust module like model_bindings::api_resolver. Compare the interactive vs. non-interactive session initialization. Look for where the model key from managed-settings.json is read and applied. Check the session type detection and ensure the enterprise setting overrides the default. Run the CLI with -p and inspect the logs to see the flow.

索引モデルが issue の本文から書いたものです。

説明

triage
Describe the bug

Enterprise managed settings (copilot/managed-settings.json in the .github-private configuration source) contain { "model": "auto" }. The runtime log shows the server policy is fetched with keys=[model,permissions], but immediately afterwards the model resolver picks the built-in default (gpt-5.6-sol) instead of Auto.

Interactive CLI sessions in a terminal do honor the setting (new sessions show Auto). Sessions started by the GitHub Copilot desktop app, and CLI runs with -p or piped stdin, do not.

Affected version

Copilot CLI 1.0.89-1; GitHub Copilot app 1.1.23; macOS (Darwin 25.6). No MDM or file-based managed settings on the device.

Steps to reproduce the behavior
  1. Set the enterprise configuration source to a .github-private repo whose copilot/managed-settings.json is { "model": "auto" }. Confirm the AI controls "Configuration summary" shows it.
  2. Wait for propagation (runtime log shows server policy served ... keys=[model,permissions]).
  3. Run copilot -p "Reply with the model name you are running as" or start a new session in the Copilot app.
  4. Observe the session runs on gpt-5.6-sol. Same on a clean COPILOT_HOME with no user settings or remembered model. copilot --model auto works, so Auto is available to the account.

Runtime log (~/.copilot/logs/process-*.log):

[managedSettings] device MDM: no policy present on this device
[managedSettings] server policy served from fresh cache (age 47512ms) for https://github.com: bypassDisabled=false, keys=[model,permissions]
[managedSettings] effective policy resolved: source=server, bypassDisabled=false, serverFetchFailed=false, policyHelperFailed=false, policyHelperFailClosed=false
[rust:model_bindings::api_resolver] Using default model: gpt-5.6-sol
Expected behavior

Per the enterprise managed settings reference, model "sets your preferred model as the default for new conversations" and is listed as supported for Copilot CLI and the Copilot app. New sessions should start on Auto in both, including non-interactive runs.

Additional context

Interactive terminal sessions apply it correctly, so the gap appears to be in the non-interactive / app session path of the runtime. Happy to share a full redacted runtime log.

主要言語
Shell
スター
11.2k
フォーク
1.9k
平均マージ
14時間 16分
マージ済み PR(30日)
6

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

github/copilot-cli のほかの issue

github/copilot-cli の issue をすべて見る

似ている issue

Shell/Bash の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。