Skip to content

fix(platform): resolve pack model ids across catalog dialects - #2891

Merged
Israeltheminer merged 1 commit into
mainfrom
fix/model-id-and-run-live-dialog
Aug 3, 2026
Merged

Israeltheminer merged 1 commit into
mainfrom
fix/model-id-and-run-live-dialog

Conversation

@Israeltheminer

Copy link
Copy Markdown
Contributor

Summary

  • Treat Claude minor-version hyphen/dot spellings and vendor-prefixed vs bare catalog ids as the same model when resolving which connector serves an automation llm/agent node; return the catalog id on the wire.
  • Honor credential allowlists against equivalent spellings (OpenRouter dotted allowlist admits Tale hyphen pack ids).
  • Close the automation Run live? confirm as soon as startRun is invoked — a later LIVE_BODY_FAILED is a run outcome, not a start refusal.

Test plan

  • bun run --filter @tale/platform test -- lib/shared/utils/model-ref.test.ts convex/automations/llm_call.test.ts
  • bun run --filter @tale/platform test -- app/features/automations/components/automation-detail.test.tsx
  • Live: run imap-smtp/triage-inbox (or any pack using anthropic/claude-haiku-4-5) with only OpenRouter connected — triage should resolve past “no configured provider serves model”
  • UI: confirm Run live → dialog closes immediately; a run that fails in-body does not leave the dialog open

Packs name Tale/Anthropic hyphen minors while OpenRouter lists dots (and
Anthropic's static catalog uses bare ids). Match by equivalence and send
the catalog entry's id on the wire. Also close the Run live confirm as
soon as the run is scheduled so a later body failure cannot leave it stuck.
@Israeltheminer
Israeltheminer merged commit 2c8fff6 into main Aug 3, 2026
68 of 69 checks passed
@Israeltheminer
Israeltheminer deleted the fix/model-id-and-run-live-dialog branch August 3, 2026 09:34
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.

1 participant