Skip to content

Fix: Align models.dev refresh guard with lookup#883

Merged
steipete merged 2 commits intosteipete:mainfrom
iam-brain:iam-brain/models-dev-pinned-snapshot-guard
May 10, 2026
Merged

Fix: Align models.dev refresh guard with lookup#883
steipete merged 2 commits intosteipete:mainfrom
iam-brain:iam-brain/models-dev-pinned-snapshot-guard

Conversation

@iam-brain
Copy link
Copy Markdown
Contributor

Summary

Follow-up to #881 / #863 for the pinned snapshot continuity edge case.

  • route models.dev refresh continuity through the same provider-scoped pricing(modelID:) lookup used at runtime
  • keep exact/base/default fallback behavior, but avoid treating different pinned @YYYYMMDD snapshots as covering one another when no base/default candidate exists
  • add a regression test for claude-sonnet-4@20250101 vs claude-sonnet-4@20250201

Verification

  • swift test --filter ModelsDevPricingTests
  • pnpm check

@iam-brain iam-brain changed the title Align models.dev refresh guard with lookup Fix: Align models.dev refresh guard with lookup May 10, 2026
@steipete steipete force-pushed the iam-brain/models-dev-pinned-snapshot-guard branch from cb3de5a to 38d706c Compare May 10, 2026 05:11
Copy link
Copy Markdown
Owner

@steipete steipete left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. The continuity guard now uses the same pricing lookup path as runtime, with a pinned-snapshot regression test. Local focused test and make check passed; CI green.

@steipete steipete merged commit fbcdeb8 into steipete:main May 10, 2026
4 checks passed
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.

2 participants