pi-mono/packages/coding-agent/src/cli
Christian Klotz d7f7e0dfee
fix(coding-agent): resolve model references through one provider selection policy (#10913)
* fix(coding-agent): resolve model references through one provider selection policy

Model references from --model, --models/enabledModels, /model, and auth credential printing now share one resolver. It collects every candidate before choosing a provider, so catalog order never decides, a :<thinking> suffix cannot change the provider, and an ambiguous exact match no longer falls through to a fuzzy match.

provider/id still prefers the named provider's exact or fuzzy match. A gateway exposing provider/id as a raw model id is used when the named provider has no match, or lacks credentials while the gateway has them. Several gateways without a unique authenticated one are reported as ambiguous.

fixes #10160

* docs(coding-agent): shorten model selection notes in CLI reference

* docs(coding-agent): condense #10160 changelog entry

* fix(coding-agent): move model reference resolution into model-resolver

* fix(coding-agent): warn when a model scope pattern matches several providers

* docs(coding-agent): trim model resolver comments to the reasons

* fix(coding-agent): build custom model ids from the resolver's not-found target
2026-10-14 11:00:21 +01:00
..
args.ts feat(coding-agent): accept +name/-name entries in --tools 2026-10-06 13:51:04 +02:00
auth-check.ts feat(coding-agent): add auth preflight 2026-08-06 19:43:52 +02:00
auth-command.ts fix(coding-agent): use APP_NAME in user-facing messages (#8067) 2026-08-14 11:26:20 +02:00
config-selector.ts fix(tui): remove coding-agent config reads from pi-tui 2026-09-03 11:59:14 +02:00
credential-print.ts fix(coding-agent): resolve model references through one provider selection policy (#10913) 2026-10-14 11:00:21 +01:00
file-processor.ts feat(ai,coding-agent): add image input limits (closes #9631) 2026-09-20 22:59:16 +02:00
initial-message.ts chore(ts): use source import extensions 2026-05-20 00:04:03 +02:00
list-models.ts fix(coding-agent): make model refresh cancellation caller-owned 2026-08-04 00:03:52 +02:00
project-trust.ts feat(ui): Improved project approval settings 2026-06-09 13:25:54 +02:00
session-picker.ts feat(coding-agent): load session picker progressively 2026-09-20 00:48:26 +02:00
setup.ts fix(coding-agent): keep remote harness dependencies development-only 2026-09-05 12:45:04 +02:00
startup-ui.ts feat(coding-agent,tui): System theme (#10067) 2026-09-26 13:33:47 +02:00