Skip to content

fix(ai): align catalog and tests with Cloudflare gateway rescope - #3

Draft
Dmatut7 wants to merge 3 commits into
cursor/second-window-create-timeout-8f7efrom
cursor/catalog-ci-align-0d9b
Draft

Dmatut7 wants to merge 3 commits into
cursor/second-window-create-timeout-8f7efrom
cursor/catalog-ci-align-0d9b

Conversation

@Dmatut7

@Dmatut7 Dmatut7 commented Aug 25, 2026

Copy link
Copy Markdown
Owner

Context

PR #1 (second-window create fix) is CI-red for an unrelated reason: live generate-models during npm run build drops cloudflare-ai-gateway workers-ai/@cf/... mirrors that tests still reference. Upstream already fixed this in PrimeIntellect-ai#1759 (ENG-5534); this ports the same alignment onto the second-window branch.

Changes

  • Regenerated models.generated.ts from live catalogs
  • Added Prime Inference maxTokens metadata for minimax-m2.7 / kimi-k2.6
  • Default cloudflare-ai-gateway model → claude-sonnet-4.5
  • Tests: remove live E2E against removed gateway mirror IDs; keep Workers AI coverage; mocked /compat unit tests build a synthetic gateway model from the live Workers AI entry
  • Docs (providers.md) + changelogs
  • Also drops a stale “force-push currently fails” comment in git-update.test.ts (suite already green)

No daemon/protocol changes.

Validation

  • npm run check green (including after a second generate-models — idempotent)
  • Previously failing pair green after regen: openai-completions-empty-tools + cross-provider-handoff
  • packages/ai keyless suite with PI_NO_LOCAL_LLM=1: 325 passed, 720 skipped
  • model-resolver.test.ts: 39 passed
  • Second-window related tests still green: session-lease, daemon-worker-env, daemon-protocol (32 passed)

Stack on top of #1; merge base-first then this.

Open in Web Open in Cursor 

Fence identity/locale env when spawning workers, force C locale for ps
start ids, and log specific ownership mismatches so a second terminal
create no longer times out on supervisor_generation_stale.
models.dev dropped workers-ai/@cf/... mirrors from cloudflare-ai-gateway.
Regenerate the catalog, point the gateway default at claude-sonnet-4.5,
and update tests so CI generate-models no longer fails typecheck/runtime.
…tests

The suite already passes for force-pushed remotes; the header comment was outdated.
@cursor
cursor Bot force-pushed the cursor/second-window-create-timeout-8f7e branch from 6cde750 to 564abfc Compare August 26, 2026 03:51
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