Skip to content

Commit d887220

Browse files
chore(provider-cursor): drop comments the context-window code already shows
Co-authored-by: Cursor <[email protected]>
1 parent 300d69f commit d887220

4 files changed

Lines changed: 1 addition & 9 deletions

File tree

‎packages/provider-cursor/src/server/adapter.test.ts‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -864,8 +864,7 @@ describe("CursorAdapterV2", () => {
864864
}),
865865
);
866866

867-
// Cursor reports no context usage, so the budget falls back to a byte
868-
// estimate of the native transcript, here a thread with long shell output.
867+
// Cursor reports no context usage, so the budget prices the native byte estimate.
869868
const budget = (modelContextWindow: number | undefined) =>
870869
handoffBudget({
871870
tokenCap: DEFAULT_HANDOFF_TOKEN_CAP,

‎packages/provider-cursor/src/server/adapter.ts‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -847,7 +847,6 @@ export interface CursorAdapterV2Options {
847847
readonly instanceId: ProviderInstanceId;
848848
readonly settings: CursorSettings;
849849
readonly environment: NodeJS.ProcessEnv;
850-
/** The driver's latest Cursor catalog, which names each model's default context window. */
851850
readonly getModels?: () => ReadonlyArray<ServerProviderModel>;
852851
}
853852

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,6 @@ it.layer(layerTest)("CursorDriver", (it) => {
203203
}),
204204
});
205205

206-
// The first catalog read waits on `catalog`, so no default is known yet.
207206
expect(runtime.getModelContextWindow?.(selection())).toBeUndefined();
208207
catalog.resolve([
209208
{

‎packages/provider-cursor/src/server/sdkModel.ts‎

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,6 @@ export function cursorSdkParameterPriority(parameterId: string): number {
4040
}
4141
}
4242

43-
/**
44-
* Token capacity named by the selected `context` parameter, such as "272k" or "1m".
45-
* A selection without one runs on the model's default in `models`, the Cursor catalog,
46-
* which is unknown until that catalog has loaded.
47-
*/
4843
export function cursorContextWindowTokens(
4944
modelSelection: ModelSelection,
5045
models: ReadonlyArray<ServerProviderModel>,

0 commit comments

Comments
 (0)