Skip to content

fix(cli): defer account model validation to runtime - #303

Merged
kingsword09 merged 1 commit into
mainfrom
fix/issue-300-account-model-validation
Nov 25, 2026
Merged

kingsword09 merged 1 commit into
mainfrom
fix/issue-300-account-model-validation

Conversation

@kingsword09

Copy link
Copy Markdown
Owner

Explicit --model account:zai-individual-coding-plan/GLM-5.4 was rejected before runtime startup when the packaged catalog lacked the model, even if the account and /model supported it.

Defer model existence checks for account: providers to the runtime, which owns the account catalog. Override syntax validation and local catalog checks for other providers remain in place. Regression tests cover account models and providers absent from local catalogs, forwarding interactive and headless overrides, and native resume rejecting unavailable account models without requests, fallback, or changes to the saved model.

Fixes #300.

Validation:

  • bun run sync:locked
  • bun run typecheck
  • bun run test (294 tests passed)
  • bun run check
  • git diff --check

@github-actions

Copy link
Copy Markdown
Contributor

pkg-pr-new preview for commit 8f370ba4329517c6bafc6427f5cd74a6d5c6f319.

npx --yes https://pkg.pr.new/zcode-app-cli@8f370ba

Full repository URL

This preview uses the selected commit. PR updates publish automatically after CI succeeds; kingsword09 can also request a preview with /pkg-pr-new.

Workflow logs

@kingsword09
kingsword09 merged commit 0ae8fb2 into main Nov 25, 2026
5 checks passed
@kingsword09
kingsword09 deleted the fix/issue-300-account-model-validation branch November 25, 2026 09:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

--model rejects a model the account serves: the pre-check uses the packaged catalog (GLM-5.4, 4.0.0-49)

1 participant