Repository navigation
Conversation
Audit every model ID Amicode ships against the provider catalog the
engine resolves IDs against (models.dev, snapshotted in
packages/extension/test/fixtures/model_catalog.json):
- onboarding: github-copilot/gpt-5.6 (gone) -> github-copilot/gpt-5.6-sol
- onboarding: amazon-bedrock/anthropic.claude-sonnet-4-5-v2 (never in the
catalog) -> amazon-bedrock/anthropic.claude-sonnet-4-6
- onboarding: the OpenCode provider offered anthropic/... and openai/...
IDs, which resolve against providers the user never authed -> opencode/...
- model routing: strongest-reasoner anthropic/claude-opus-4-1 (gone from
the anthropic provider) -> anthropic/claude-opus-5
A stale pin that still reaches the engine now fails loudly: the HTTP
error middleware returns ProviderModelNotFoundError as a named 400
("Model X is not available from provider Y; pick another model...")
instead of the generic "Unexpected server error" 500, and the session
error event carries the same actionable message.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
jacktrnr
marked this pull request as ready for review
November 23, 2026 22:27
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #1282
What
1. Audit: every shipped model ID now resolves against the provider catalog. The engine resolves
provider/modelIDs against the models.dev catalog (baked into the binary at build time, refreshed at runtime). The audit used a snapshot of that catalog taken 2026-11-22, stored inpackages/extension/test/fixtures/model_catalog.json. To refresh it, runnode packages/extension/scripts/snapshot_model_catalog.mjs.Stale pins found and fixed:
github-copilot/gpt-5.6github-copilot/gpt-5.6-solamazon-bedrock/anthropic.claude-sonnet-4-5-v2amazon-bedrock/anthropic.claude-sonnet-4-6anthropic/claude-opus-5,anthropic/claude-sonnet-5,openai/gpt-5.6-solopencode/claude-opus-5,opencode/claude-sonnet-5,opencode/gpt-5.6-solstrongest-reasoneranthropic/claude-opus-4-1anthropicprovideranthropic/claude-opus-5Checked and still resolving: the
amicode.distillerModeldefaultopencode/big-pickle, the other onboarding and model-class IDs, and the RUNBOOK examples. The extension bakes no chat default (resolveModelPin()returnsundefined), and nokimi-k3literal remains in the engine source.2. A stale pin that still reaches the engine now fails with a named error.
server/routes/instance/httpapi/middleware/error.ts, now in the overlay) used to turn everyProviderModelNotFoundErrorinto the genericUnexpected server error500. It now returns a named 400 in the{name: "ProviderModelNotFoundError", data: {providerID, modelID, suggestions, message}}shape that the app's error renderer already formats.ProviderModelNotFoundError.messagenow names the fix:Model not found: p/m. Model "m" is not available from provider "p"; pick another model in the model picker or update the pinned model in your config. Did you mean: …?. The session error event published fromSessionPrompt.getModelreuses this message. The oldModel not found: p/mprefix is kept, so the existing matchers (dead-pickINVALID, tests) still apply.Out of scope: the hub-side boot gate and warning (hub is paid-side).
Tests (written first, RED, then GREEN)
packages/extension/test/shipped_model_pins.test.ts(new). It checks four things against the snapshot: every onboarding template ID resolves, each template belongs to the provider it is offered under, every model-class candidate resolves, and the distiller default resolves and matches the source fallbacks. The first RED run had 3 failures, listing exactly the pins above.overlay/.../test/server/httpapi-error-middleware.test.ts: new case "returns a stale model pin as a named, actionable model error". It was RED (500) before the fix.onboarding_panel.test.ts: the Bedrock probe test now expects the new second model ID.Gates:
pnpm --filter amicode testpasses, engine typecheck gate is OK,drift_gatepasses. Manifest refreshed.🤖 Generated with Claude Code