pi-mono/packages/coding-agent/src
Aliou Diallo ec4d413fc9
fix(coding-agent): custom models for built-in providers and list-models error surfacing (#3072)
* fix(coding-agent): surface models.json load errors on stderr in --list-models

When models.json has validation errors, --list-models silently
discarded custom models and overrides without any user-visible
feedback. Now prints the error to stderr via chalk.yellow warning
before listing available models.

* fix(coding-agent): allow custom models for built-in providers in models.json

Built-in providers (openrouter, anthropic, etc.) already have api and
baseUrl on every model, and auth comes from env vars / auth storage.
Relax validation so custom models under built-in providers don't need
redundant baseUrl, apiKey, or api fields. Inherit them from the first
built-in model for that provider.

fixes #2921

---------

Co-authored-by: Mario Zechner <badlogicgames@gmail.com>
2026-04-14 20:32:18 +02:00
..
bun fix(coding-agent): suppress process warnings in CLI closes #2404 2026-03-19 22:21:48 +01:00
cli fix(coding-agent): custom models for built-in providers and list-models error surfacing (#3072) 2026-04-14 20:32:18 +02:00
core fix(coding-agent): custom models for built-in providers and list-models error surfacing (#3072) 2026-04-14 20:32:18 +02:00
modes fix(coding-agent): stop bordered loader on dispose 2026-04-14 16:48:54 +02:00
utils fix(coding-agent): handle git/npm extension paths in CLI resolution (#2845) 2026-04-05 18:42:14 +02:00
cli.ts feat(coding-agent): set PI_CODING_AGENT=true env var at startup 2026-04-09 03:03:19 +02:00
config.ts fix(coding-agent): add earendil startup announcement 2026-04-08 11:13:40 +02:00
index.ts feat(coding-agent): accept inline extension factories in main() (#3099) 2026-04-14 20:26:07 +02:00
main.ts feat(coding-agent): accept inline extension factories in main() (#3099) 2026-04-14 20:26:07 +02:00
migrations.ts refactor(coding-agent): replace AgentSessionRuntimeHost with closure-based AgentSessionRuntime 2026-04-03 20:14:12 +02:00
package-manager-cli.ts refactor(coding-agent): replace AgentSessionRuntimeHost with closure-based AgentSessionRuntime 2026-04-03 20:14:12 +02:00