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

Offen
#5,604 0 Kommentare 1 Reaktion 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Anfängerfreundlichkeit
42/100
Issue-Typ
Bug
Klarheit
Klar beschrieben
Aktivitätsstatus
Aktiv
Tech-Stack
github, python
Bereich
backend, cli

Rechercherichtung

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.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

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.

Vorherrschende Sprache
Python
Sterne
11.5k
Forks
2k
Ø Merge
6 Std. 34 Min.
Gemergte PRs (30 T.)
3

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus github/copilot-cli

Alle Issues in github/copilot-cli

Ähnliche Issues

Weitere Issues zu Python

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.