GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — [WRONG BRANCH] fix(cursor): accept trailing -fast Grok wire ids by chasehuh · Pull Request #730 · lidge-jun/opencodex

Conversation

@chasehuh

@chasehuh chasehuh commented Jul 30, 2026 •
edited by coderabbitai Bot
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

Summary

  • Accept Cursor's current Grok Fast wire shape {stem}-{effort}-fast in live discovery (keep older {stem}-fast-{effort} too).
  • Emit trailing--fast wire ids when resolving cursor/grok-4.5-fast + reasoning effort.
  • Add regression coverage from a live GetUsableModels snapshot.

Closes #731

Why

Cursor accounts with Grok Fast unlocked were still filtered out of the Codex catalog because OpenCodex expected grok-4.5-fast-high while upstream returns grok-4.5-high-fast.

Test plan

  • bun test tests/cursor-discovery.test.ts tests/cursor-effort-suffix.test.ts
  • bun run typecheck
  • Live protobuf snapshot: grok-4.5-fast availability flips to true; wire grok-4.5-high-fast present
  • Maintainer: smoke ocx sync on a Cursor account with Grok Fast and pick cursor/grok-4.5-fast

Summary by CodeRabbit

  • Bug Fixes

    • Improved Cursor model discovery for fast variants using alternate effort-tier naming.
    • Corrected model identifiers for reasoning-effort configurations, including grok-4.5-fast.
    • Prevented valid fast models from being incorrectly omitted when returned by Cursor.
  • Tests

    • Added coverage for supported and mismatched Cursor model identifier formats.
    • Updated expectations for effort-tier model identifiers.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@chasehuh @cursoragent
fix(cursor): accept trailing -fast Grok wire ids
9677a8b
Cursor GetUsableModels now returns grok-4.5-{effort}-fast instead of
grok-4.5-fast-{effort}, so live discovery dropped Fast and requests used
not_found wire ids. Match both shapes and emit the trailing-fast form.

Co-authored-by: Cursor <[email protected]>
@chasehuh
chasehuh requested review from Ingwannu, Wibias and lidge-jun as code owners July 30, 2026 03:42
@github-actions

github-actions Bot commented Jul 30, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

⚠️ Wrong target branch

This pull request currently targets main, but pull requests must target one of dev or dev2-go.

@chasehuh Please retarget this PR to dev. Most contributions go to dev first; use dev2-go only for scoped Go native-port work. main receives only release promotions. See our Contributing guide for details. Thanks! 🙏

Its title has been prefixed with [WRONG BRANCH].

This pull request is being kept as a draft automatically. Once every issue above is resolved, it will be marked ready for review again.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@github-actions github-actions Bot changed the title fix(cursor): accept trailing -fast Grok wire ids [WRONG BRANCH] fix(cursor): accept trailing -fast Grok wire ids Jul 30, 2026
@github-actions github-actions Bot added the bug Something isn't working label Jul 30, 2026
@github-actions
github-actions Bot marked this pull request as draft July 30, 2026 03:42
@chasehuh chasehuh mentioned this pull request Jul 30, 2026
[Bug][Cursor] grok-4.5-fast dropped: live wire ids use trailing -fast after effort #731
Closed
2 tasks done
@coderabbitai

coderabbitai Bot commented Jul 30, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: a56e4f28-f2f1-48f0-951a-7e23c8199370

📥 Commits

Reviewing files that changed from the base of the PR and between d1f544b and 9677a8b.

📒 Files selected for processing (5)
  • src/adapters/cursor/discovery.ts
  • src/adapters/cursor/effort-map.ts
  • src/adapters/cursor/request-builder.ts
  • tests/cursor-discovery.test.ts
  • tests/cursor-effort-suffix.test.ts

📝 Walkthrough

Walkthrough

Cursor effort-tier handling now constructs trailing-fast wire IDs, uses that construction during request normalization, and recognizes the same format during live model discovery. Tests cover valid and invalid effort-tier ordering.

Changes

Cursor effort-tier wire IDs

Layer / File(s) Summary
Wire ID construction
src/adapters/cursor/effort-map.ts
Adds cursorWireModelIdWithEffort() and documents the current trailing-fast naming pattern for grok-4.5 variants.
Request normalization integration
src/adapters/cursor/request-builder.ts
Routes effort-qualified model IDs through the shared wire-ID helper.
Discovery matching and validation
src/adapters/cursor/discovery.ts, tests/cursor-discovery.test.ts, tests/cursor-effort-suffix.test.ts
Recognizes trailing-fast live IDs and verifies valid and mismatched effort-tier ordering.
Estimated code review effort: 3 (Moderate) ~20 minutes

Possibly related PRs

  • lidge-jun/opencodex#296: Modifies the adjacent Cursor model normalization and discovery mapping paths.

Suggested reviewers: ingwannu, lidge-jun, wibias

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately summarizes the main change: accepting trailing -fast Grok wire IDs in Cursor.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches 💡 1
🛠️ Fix failing CI checks 💡
  • Fix failing CI checks
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Comment @coderabbitai help to get the list of available commands.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@chasehuh

chasehuh commented Jul 30, 2026

Copy link
Copy Markdown
Author

Closing for now — will reopen against dev with a proper issue template when ready.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@chasehuh chasehuh closed this Jul 30, 2026
chatgpt-codex-connector[bot]
chatgpt-codex-connector Bot reviewed Jul 30, 2026
View reviewed changes

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 9677a8bbab

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread tests/cursor-effort-suffix.test.ts
// Live GetUsableModels returns grok-4.5-{low,medium,high}-fast, not grok-4.5-fast-{effort}.
expect(modelIdFor("cursor/grok-4.5-fast", "medium")).toBe("grok-4.5-medium-fast");
expect(modelIdFor("cursor/grok-4.5-fast", "high")).toBe("grok-4.5-high-fast");
expect(modelIdFor("cursor/grok-4.5-fast", "xhigh")).toBe("grok-4.5-xhigh-fast");

@chatgpt-codex-connector chatgpt-codex-connector Bot Jul 30, 2026

Copy link
Copy Markdown

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

P1 Badge Align Grok tiers with the current wire lineup

When cursor/grok-4.5-fast is requested with xhigh—or with no explicit effort, because cursorEffortSuffix selects the last configured tier—this expectation produces grok-4.5-xhigh-fast. The live lineup documented in this change contains only low, medium, and high, so that request targets an unavailable model; the stale tier map also clamps an explicit low request to medium and advertises xhigh in the picker. Update both Grok tier arrays to low/medium/high and cover low and the default mapping instead of accepting this nonexistent wire ID.

Useful? React with 👍 / 👎.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread src/adapters/cursor/effort-map.ts
export function cursorWireModelIdWithEffort(baseModelId: string, effortSuffix: string): string {
if (baseModelId.endsWith("-fast")) {
const stem = baseModelId.slice(0, -"-fast".length);
return `${stem}-${effortSuffix}-fast`;

@chatgpt-codex-connector chatgpt-codex-connector Bot Jul 30, 2026

Copy link
Copy Markdown

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

P2 Badge Preserve the wire form accepted during discovery

When an account's GetUsableModels response contains only the retained legacy form such as grok-4.5-fast-medium, discovery still exposes cursor/grok-4.5-fast (as explicitly covered in tests/cursor-discovery.test.ts), but every subsequent request is unconditionally rewritten here to grok-4.5-medium-fast, which is not among that account's advertised usable IDs. Either stop treating legacy-only discovery results as available or retain which form was discovered and emit that form for requests, otherwise the compatibility path produces an exposed model that cannot be called.

Useful? React with 👍 / 👎.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@jbaehova jbaehova mentioned this pull request Jul 31, 2026
fix(cursor): support current Grok 4.5 Fast wire IDs #797
Merged
This was referenced Aug 2, 2026
fix(cursor): send Grok 4.5 Fast parameters #881
Closed
fix(cursor): preserve Grok wire model prefix #1159
Closed
fix(cursor): Add native image support for Cursor #1228
Closed
This was referenced Aug 12, 2026
cursor: Test Grok 4.6 Fast parameter mapping #1550
Closed
test(cursor): verify Grok 4.6 routing #1547
Closed
fix(grok): expose Grok 4.6 xhigh and Cursor Fast #1591
Closed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@chatgpt-codex-connector chatgpt-codex-connector[bot] chatgpt-codex-connector[bot] left review comments
@lidge-jun lidge-jun Awaiting requested review from lidge-jun
@Ingwannu Ingwannu Awaiting requested review from Ingwannu
@Wibias Wibias Awaiting requested review from Wibias

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

bug Something isn't working

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

[Bug][Cursor] grok-4.5-fast dropped: live wire ids use trailing -fast after effort

Uh oh!

There was an error while loading. Please reload this page.

1 participant

@chasehuh
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.