Copilot CLI ACP mode ignores fusionTier=high and uses Standard routing

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

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

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
42/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
github, python
領域
backend, cli

調査の方向性

The report identifies copilot --acp, session/new, session/prompt, and the fusionTier setting, but names no source files or tests. Start by tracing how ACP sessions select a model and how the CLI applies the configured Fusion tier; compare that route with the -p path. Done means ACP honors the configured tier or clearly reports the limitation, with coverage for the observed High routing behavior.

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

説明

area:models area:non-interactive
Summary

With fusionTier set to high, a copilot -p run routes the request through HydraFusion (session.fusion_resolved, syntheticModel: "hydrafusion", a solver plus judge cascade). The same prompt sent through copilot --acp is routed by auto_v2 instead (session.auto_mode_resolved, routingMethod: "auto_v2", one model). No session.fusion_* events appear, so the configured tier has no effect.

This is the runtime counterpart to #5354. That issue covers ACP not advertising Fusion or a tier option, and explicitly did not test which backend auto executes. This report shows what actually executes.

Environment
  • Copilot CLI 1.0.116 (copilot --version → GitHub Copilot CLI 1.0.116.), Windows 11 x64, installed with winget install --id GitHub.Copilot --exact, auto-update disabled during tests
  • An individual plan on which Fusion Standard, High and Max are all available (all three verified in -p mode on the same machine and account, minutes apart)
  • ACP clients: (a) a minimal stdio JSON-RPC client; (b) T3 Code 0.1.11 as a full ACP host. The results were the same.
Steps to reproduce
  1. copilot config fusionTier high (confirm with copilot config fusionTier → high)
  2. Reference run (-p):
    copilot -p "<PROMPT>" --model fusion --max-ai-credits 30 --output-format json --no-custom-instructions --disable-builtin-mcps --no-ask-user
    
  3. ACP run: start copilot --acp --model fusion --max-ai-credits 30 in an empty test repository and send only these three requests. No session/set_config_option, no session/set_mode.
    {"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":1,
      "clientInfo":{"name":"acp-repro","version":"0.0.1"},
      "clientCapabilities":{"fs":{"readTextFile":false,"writeTextFile":false},"terminal":false,
        "_meta":{"github.com/copilot":{"events":["assistant.turn_start","assistant.idle","session.idle",
          "session.model_change","session.auto_mode_resolved","session.fusion_route_started",
          "session.fusion_resolved","session.fusion_completed","assistant.fusion_phase_completed",
          "session.usage_checkpoint"]}}}}}
    {"jsonrpc":"2.0","id":2,"method":"session/new","params":{"cwd":"<path-to-empty-test-repo>","mcpServers":[]}}
    {"jsonrpc":"2.0","id":3,"method":"session/prompt","params":{"sessionId":"<sessionId from id 2>","prompt":[{"type":"text","text":"<PROMPT>"}]}}
    
    session/new returns models.currentModelId: "auto".

<PROMPT> (synthetic, identical in both runs):

Do not call any tools. In at most 6 lines: identify the bug in this JavaScript and give a corrected one-line version. function avg(a){ return a.reduce((s,x)=>s+x) / a.length; } Consider empty arrays and arrays of numeric strings.
Expected

The ACP session routes the request the same way the -p run does for the same configured tier, or the CLI states that fusionTier does not apply to ACP sessions.

Actual: sanitized telemetry

Reference -p run, fusionTier=high:

{"type":"session.fusion_resolved","data":{"syntheticModel":"hydrafusion","policy":"standard",
 "policyVersion":"hydrafusion_v4_2026-11-10","pattern":"cascade",
 "ruleId":"cascade_sol61_medium_luna6_high_opus55_medium",
 "primaryModel":"gpt-6.1-sol","judgeModel":"gpt-6-luna","repairModel":"claude-opus-5.5",
 "scores":{"reasoning":0.4192,"codeGen":0.3831,"debugging":0.437,"toolUse":0.03}}}

It was followed by assistant.fusion_phase_completed for primary (gpt-6.1-sol) and judge (gpt-6-luna, verdict accept), then session.fusion_completed. (The policy: "standard" label on a High run matches #5457; this report does not rely on that field.)

ACP run, same setting and prompt: event sequence session.auto_mode_resolved → assistant.turn_start → session.usage_checkpoint → assistant.idle → session.idle. No session.fusion_* events.

{"type":"session.auto_mode_resolved","data":{"chosenModel":"gpt-6.1-terra",
 "selectionReason":"Copilot Fusion selected GPT-6.1 Terra since the task has medium complexity.",
 "categoryScores":{"code_gen":0.3831,"reasoning":0.4192,"tool_use":0.03,"debugging":0.437},
 "candidateModels":["gpt-6.1-terra"],"routingMethod":"auto_v2","fallback":false,
 "availableModels":["gpt-6.1-terra"],"hasImage":false}}

The session usage was a single model call. The session.usage_checkpoint reported totalPremiumRequests: 1.

Confirmed vs inferred

Experimentally confirmed (CLI 1.0.116):

  1. -p with fusionTier=high routes through HydraFusion (cascade), as above.
  2. -p with fusionTier=standard routes through auto_v2, and that event carries "autoTier":"balance".
  3. -p with fusionTier=max routes through syntheticModel: "hydrafusion-max" (policy: "max").
  4. ACP with fusionTier=high routes through auto_v2 with no autoTier field and no session.fusion_* events: once with the minimal client and once with T3 Code (a fresh copilot --acp process started after the setting was changed).
  5. The routing classifier's scores are identical in the -p High run and the ACP run (reasoning 0.4192, debugging 0.437, code_gen 0.3831, tool_use 0.03). The same task was classified the same way, but only -p took the HydraFusion path.
  6. In ACP configOptions, the model select lists two options with value "auto". After session/set_config_option {configId:"model", value:"auto"}, reasoning_effort disappears and no tier or routing-profile option is advertised (consistent with #5354).
  7. fusionTier is user-scope only: copilot config --repo fusionTier high and --local are rejected. 1.0.116 has no --fusion-tier flag (see also #5290). --auto-tier / COPILOT_AUTO_TIER select only auto-type routing profiles (efficiency, balance, intelligence).

Inferred, not demonstrated:

  • That ACP sessions do not read fusionTier at all. They might read it but have it overridden. Only the routing outcome was observed.
  • Fusion Max over ACP was not tested. This report makes no claim about Max in ACP.
  • Each ACP observation is based on one run per client. The -p and ACP results were consistent with each other, and the identical classifier scores make chance routing variance an unlikely explanation.
Why the ACP client is not responsible
  • The minimal client sends only initialize, session/new and session/prompt. It changes no model, mode or configuration option.
  • T3 Code additionally sends session/set_config_option {configId:"model", value:"auto"} at session start. Reproducing that call alone produces session.model_change {source:"sdk", previousModel:"auto", newModel:"auto", reasoningEffort:null}, which is a no-op for routing. Both clients produced the same auto_v2 routing.
  • The same machine, account and setting produce HydraFusion routing in -p mode immediately before and after the ACP runs.
Requested (any one would resolve this)
  1. Honor the configured fusionTier in ACP sessions, exactly as in -p and interactive mode.
  2. Expose Fusion tier selection through ACP configuration options while the model is Auto (e.g. a select with standard / high / max), so ACP clients can choose the tier per session. This would also resolve #5354.
  3. Provide a supported launch argument or environment variable (e.g. the documented --fusion-tier, or COPILOT_FUSION_TIER) that ACP hosts can pass per copilot --acp process.

If tier selection is intentionally unsupported over ACP, please document that limitation and the supported alternative.

主要言語
Python
スター
11.5k
フォーク
2k
平均マージ
6時間 34分
マージ済み PR(30日)
3

環境構築

はじめの一歩

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

github/copilot-cli のほかの issue

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

似ている issue

Python の issue をもっと見る

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

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