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 — feat(cursor): map optional Max Mode from the SDK catalog by Huijiro · Pull Request #27908 · pingdotgg/t3code

Conversation

@Huijiro

@Huijiro Huijiro commented Oct 31, 2026 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown

Problem

Cursor catalog variants can require or optionally offer max mode, but T3 model selection did not set SDK maxMode from the catalog and had no composer control when the same params matched both max and non-max variants.

Change

Return catalog sdkModels from the timed status probe, cache them on the driver, derive forced maxMode from matching variants, expose an optional Max Mode boolean when the catalog offers both, and ignore the option when the selected params have no matching max variant.

Scope and approval

Depends on #27906 (SDK 1.2.0). Catalog/maxMode mapping only; no summarize/compaction changes. Closed precursor: #26262 (split for one-problem).

Verification

  • vp test run packages/provider-cursor/src/server/sdkModel.test.ts packages/provider-cursor/src/server/status.test.ts packages/provider-cursor/src/server/driver.test.ts packages/provider-cursor/src/server/adapter.test.ts

Composer (Cursor harness) via T3 Code.

Sorry, something went wrong.

Uh oh!

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

All reactions
@Huijiro Huijiro mentioned this pull request Oct 31, 2026
feat(cursor): bump SDK to 1.2.0 for ambient MCP, summarize, and maxMode #26262
Closed
5 tasks done
@github-actions github-actions Bot added vouch:unvouched Author is not yet trusted in the VOUCHED list. size:L 100-499 changed lines (additions + deletions). labels Oct 31, 2026
macroscopeapp[bot]
macroscopeapp Bot reviewed Oct 31, 2026
View reviewed changes
Comment thread packages/provider-cursor/src/server/sdkModel.ts Resolved

Uh oh!

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

@macroscopeapp

macroscopeapp Bot commented Oct 31, 2026

Copy link
Copy Markdown
Contributor

Approvability

Verdict: Needs Human Approval

Macroscope's review found this PR requires human approval — Cursor now derives Max Mode from catalog variants and supports ambient MCP/plugins alongside T3 tools. Human review is needed to confirm the changed default model and tool behavior is intended.

Needs human approval because:

  • 1 blocking correctness issue found at or above your repo's Minimum Blocking Severity

Adjust the Minimum Blocking Severity for this repo — including turning it Off — in Settings. You can add or adjust custom eligibility rules. Learn more.

All reactions

Sorry, something went wrong.

Uh oh!

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

@coderabbitai

coderabbitai Bot commented Oct 31, 2026 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown
Contributor

Review in Change Stack →

Note

Reviews paused

It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.

  • Last reviewed commit: c28316e
  • Latest commit, not reviewed: d1be6dd

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • Resume reviews
  • Trigger review

No actionable comments were generated in the recent review.

Walkthrough

The Cursor provider now returns SDK model metadata with successful status checks. It uses model variants to determine Max Mode behavior, exposes optional Max Mode as a capability, and passes SDK models into agent and turn model selection.

Changes: Cursor SDK model selection

Layer / File(s) Summary
Max Mode variant matching
packages/provider-cursor/src/server/sdkModel.ts, packages/provider-cursor/src/server/sdkModel.test.ts
Variant matching determines when Max Mode is required or optional. Model selection sets maxMode separately from SDK parameters. Tests cover variant matching and Max Mode selection.
Status results and model capabilities
packages/provider-cursor/src/server/status.ts, packages/provider-cursor/src/server/status.test.ts
Status checks return SDK models when catalog loading succeeds, or undefined on failure paths. Models with optional Max Mode receive a default-false capability. Tests cover returned models and capabilities.
Catalog propagation to model selection
packages/provider-cursor/src/server/driver.ts, packages/provider-cursor/src/server/adapter.ts, packages/provider-cursor/src/server/driver.test.ts
The driver retains available SDK models and exposes them to the adapter. Agent creation and turn sending provide those models to model selection. The driver test expects Max Mode for a Max-only default variant.

Estimated code review effort: 3 (Moderate) | ~25 minutes

Change: Feature

Sequence Diagram(s)

sequenceDiagram
  participant CursorDriver
  participant CursorProviderStatus
  participant CursorSdkCatalog
  participant CursorAdapter
  participant CursorSdkModelSelection
  CursorDriver->>CursorProviderStatus: check status
  CursorProviderStatus->>CursorSdkCatalog: read SDK models
  CursorSdkCatalog-->>CursorProviderStatus: return SDK models
  CursorProviderStatus-->>CursorDriver: return provider and SDK models
  CursorDriver->>CursorAdapter: expose SDK models
  CursorAdapter->>CursorSdkModelSelection: select using model variants
Loading

Possibly related issues

  • [Bug]: Cursor options left at their default aren't sent, so delegated tasks and untouched threads run at 300K while T3 shows 1M #16149 — The change derives Max Mode from SDK variants, but does not implement the issue’s broader default-parameter handling.

Possibly related PRs

  • pingdotgg/t3code#26262 — Introduces the Cursor SDK catalog variant behavior that this change uses to select Max Mode.
  • pingdotgg/t3code#28722 — Extends the catalog-to-model-selection flow by passing catalog models through the adapter.
  • pingdotgg/t3code#28718 — Changes the catalog implementation and model-discovery path consumed by the status and driver changes.

Suggested reviewers: noahcuadrado, bil0000

Merge Risk: Minimal · previous review c2831

No actionable merge-blocking risk is identified in the reviewed change.

Pre-merge checks: Passed 3 · Failed 1

Failed Failed checks: 1 warning

Check name Status Explanation Resolution
Description check Warning The description covers the problem, the change, scope and approval, and verification. The Problem and Change sections clearly describe the behavior gap and the fix. The Scope section names a dependenc… Add a link to the triaged bug issue or the maintainer-approved discussion, with the approval comment. If no prior issue exists, explain why this qualifies as a small, focused fix or as focused configuration of an established capability. Und…
Passed Passed checks: 3 passed

Check name Status Explanation
Title check Passed The title "feat(cursor): map optional Max Mode from the SDK catalog" follows conventional commit format and names the main change. The changeset maps SDK catalog variants to a maxMode parameter, force…
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.
Full details: Title check

Explanation

The title "feat(cursor): map optional Max Mode from the SDK catalog" follows conventional commit format and names the main change. The changeset maps SDK catalog variants to a maxMode parameter, forces maxMode when variants require it, and exposes an optional Max Mode boolean when the catalog offers both modes. The title is specific and concise, and a reviewer scanning history can identify the primary change.

Full details: Description check

Explanation

The description covers the problem, the change, scope and approval, and verification. The Problem and Change sections clearly describe the behavior gap and the fix. The Scope section names a dependency on #27906 and a closed precursor PR. The Verification section lists a focused test command. Gaps against the template: the Scope and approval section does not link a triaged bug issue or maintainer approval, and the template requires explaining why an optional Max Mode setting is a focused configuration of an established capability. The Verification section does not state observed results or note what was not checked, such as live Cursor catalog behavior. The description also omits the required agent model and harness line, although it includes a 'Composer (Cursor harness) via T3 Code' note that may serve that purpose.

Resolution

Add a link to the triaged bug issue or the maintainer-approved discussion, with the approval comment. If no prior issue exists, explain why this qualifies as a small, focused fix or as focused configuration of an established capability. Under Verification, state the observed results for the changed behavior, for example the number of passing tests and the Max Mode behavior checked. State what was not verified, such as live Cursor catalog and Max Mode interaction. Confirm that the agent model and harness line matches the template requirement.

Finishing Touches

Generate unit tests (beta)

  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info

Run configuration

  • Source mode: Auto
  • Repository: pingdotgg/t3code
  • Branch: main
  • File: .coderabbit.config.ts
  • Commit: 55ea365
  • Layers: Repository TS config
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 7673773c-0dc7-4d41-b497-03f0d5626f76
Commits

Reviewing files that changed from the base of the PR and between 67d9fda and c28316e.

Files selected for processing: 1

  • packages/provider-cursor/src/server/driver.test.ts

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 8 remain after this review.

All reactions

Sorry, something went wrong.

Uh oh!

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

@Huijiro
Huijiro force-pushed the t3/cursor-optional-max-mode branch from b634f7c to c95c1a6 Compare October 31, 2026 18:15
@maria-rcks

maria-rcks commented Nov 1, 2026 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown
Collaborator

Note

Written by claude-opus-5-5 on behalf of Maria

Merged current main into the head (merge commit 91f193e589, no rebase). One conflict in packages/provider-cursor/src/server/driver.ts: main switched Cursor usage limits to the SDK account and dropped the keychain path, while this PR wraps the status result as { provider, sdkModels }. The resolution keeps main's readCursorUsageLimits(config, env) call inside the PR's sdkModels passthrough. No feature changes.

Blacksmith: all 127 packages/provider-cursor/src/server tests pass, and vp run check:changed github/main passes format, lint, knip, typecheck (10 packages) and 5 test files. The earlier default-params Max Mode review thread was already fixed and resolved.

Unverified: live Cursor catalog and the Max Mode composer toggle, since this VM has no Cursor login.

All reactions

Sorry, something went wrong.

Uh oh!

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

Huijiro and others added 3 commits November 3, 2026 13:35
@Huijiro @cursoragent
feat(cursor): map optional Max Mode from the SDK catalog
3e6dd2f
Cache catalog models from the timed status probe, expose a Max Mode composer boolean when matching variants allow it, and set send maxMode only when forced or admitted by the selected params.

Co-authored-by: Cursor <[email protected]>
@Huijiro @cursoragent
fix(cursor): honor Max Mode against the default catalog params
8396d70
When the composer only toggles Max Mode, resolve the default variant's params so matching max-mode variants are admitted instead of requiring isDefault on every candidate.

Co-authored-by: Cursor <[email protected]>
@Huijiro @cursoragent
fix(cursor): unwrap status probe in catalog auth tests
67d9fda
checkCursorProviderStatus now returns { provider, sdkModels }; assert on the provider snapshot after main's auth cases landed beside the Max Mode catalog change.

Co-authored-by: Cursor <[email protected]>
@Huijiro

Huijiro commented Nov 3, 2026

Copy link
Copy Markdown
Author

Rebased onto current main (cherry-picked the three Max Mode commits; dropped the ambient commit now on main). Conflicts were only stale package.json / workspace catalog noise — feature code applied cleanly. sdkModel / status tests pass locally (21).

All reactions

Sorry, something went wrong.

Uh oh!

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

@Huijiro
Huijiro force-pushed the t3/cursor-optional-max-mode branch from 90d5b00 to 67d9fda Compare November 3, 2026 16:37
coderabbitai[bot]
coderabbitai Bot reviewed Nov 3, 2026
View reviewed changes

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

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.

Additional comments: 1
packages/provider-cursor/src/server/driver.ts-272-273: 1

272-273: Major · Functional Correctness · Quick win

Unverified finding
Verification ran but could not confirm this finding. It is shown for review, not as a verified issue.

Test Max Mode propagation through the driver.

Extend the existing catalog-refresh case in driver.test.ts with a Max-only variant. Assert that the model passed to the runner includes maxMode: true after refresh. The current helper and status tests would not catch a broken driver-to-adapter catalog connection.

As per coding guidelines, “Backend behavior changes ship with focused tests.”

Source: Coding guidelines

Review info
Run configuration
  • Source mode: Auto
  • Repository: pingdotgg/t3code
  • Branch: main
  • File: .coderabbit.config.ts
  • Commit: 55ea365
  • Layers: Repository TS config
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 0a778fdd-5020-461b-bcd8-7b3acacfea31
Commits

Reviewing files that changed from the base of the PR and between 90d5b00bc432b3e529b31bac8e0fef7c4bb3d211 and 67d9fda.

Files selected for processing: 3
  • packages/provider-cursor/src/server/adapter.ts
  • packages/provider-cursor/src/server/driver.ts
  • packages/provider-cursor/src/server/status.test.ts

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.

Sorry, something went wrong.

Uh oh!

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

All reactions
@Huijiro @cursoragent
test(cursor): assert Max Mode reaches the runner after catalog refresh
c28316e
Co-authored-by: Cursor <[email protected]>
@Huijiro

Huijiro commented Nov 3, 2026

Copy link
Copy Markdown
Author

Addressed CodeRabbit’s driver coverage note: the existing catalog-refresh case now uses a Max-only default variant and asserts maxMode: true on the model sent after refresh (and retained after a failed status probe).

All reactions

Sorry, something went wrong.

Uh oh!

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

@Huijiro

Huijiro commented Nov 3, 2026

Copy link
Copy Markdown
Author

CI on c28316e is stuck at action_required (fork workflow approval), not a real failure — I don't have rights to approve runs on pingdotgg/t3code. A maintainer click on Approve and run workflows will unblock the same checks that were green on 67d9fda.

All reactions

Sorry, something went wrong.

Uh oh!

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

@maria-rcks
Merge remote-tracking branch 'github/main' into t3/cursor-optional-ma…
91f193e
…x-mode

# Conflicts:
#	packages/provider-cursor/src/server/driver.ts
@coderabbitai coderabbitai Bot mentioned this pull request Nov 11, 2026
fix(cursor): send the catalog's default model parameters on every Cursor run #28722
Merged
@github-actions

github-actions Bot commented Nov 15, 2026

Copy link
Copy Markdown
Contributor

This PR conflicts with main. Rebase it or merge main into it. If it still conflicts after 7 days with no activity, it will be closed automatically.

See the conflict window.

All reactions

Sorry, something went wrong.

Uh oh!

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

@github-actions github-actions Bot added the needs-rebase Conflicts with its base branch. Closes after 7 days with no activity. label Nov 15, 2026
@juliusmarminge
juliusmarminge requested a review from Yash-Singh1 November 17, 2026 04:17
@juliusmarminge juliusmarminge added the takeover:in-progress A takeover lead is working on this PR label Nov 17, 2026
juliusmarminge and others added 2 commits November 17, 2026 04:24
@juliusmarminge @claude
Merge origin/main into t3/cursor-optional-max-mode
972ffab
Combine catalog parameter defaults (pingdotgg#28722) with catalog-driven Max Mode:
cursorSdkModelSelection takes both the projected models and the raw SDK
catalog, and never forwards the maxMode composer option as an SDK param.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@juliusmarminge @claude
refactor(cursor): capture the SDK catalog with one tap and share it w…
d1be6dd
…ith text generation

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@juliusmarminge juliusmarminge added takeover:needs-julius Takeover done; route gate says Julius decides and removed takeover:in-progress A takeover lead is working on this PR labels Nov 17, 2026
@github-actions github-actions Bot removed the needs-rebase Conflicts with its base branch. Closes after 7 days with no activity. label Nov 17, 2026
@github-actions

github-actions Bot commented Nov 22, 2026

Copy link
Copy Markdown
Contributor

This PR conflicts with main. Rebase it or merge main into it. If it still conflicts after 7 days with no activity, it will be closed automatically.

See the conflict window.

All reactions

Sorry, something went wrong.

Uh oh!

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

@github-actions github-actions Bot added the needs-rebase Conflicts with its base branch. Closes after 7 days with no activity. label Nov 22, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@coderabbitai coderabbitai[bot] coderabbitai[bot] left review comments
@macroscopeapp macroscopeapp[bot] macroscopeapp[bot] left review comments
@Yash-Singh1 Yash-Singh1 Awaiting requested review from Yash-Singh1

Uh oh!

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

Assignees

No one assigned

Labels

needs-rebase Conflicts with its base branch. Closes after 7 days with no activity. size:L 100-499 changed lines (additions + deletions). takeover:needs-julius Takeover done; route gate says Julius decides vouch:unvouched Author is not yet trusted in the VOUCHED list.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

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

3 participants

@Huijiro @maria-rcks @juliusmarminge
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.