fix: update Cursor client version to 3.1.0 for Composer 2 compatibility (#525)
Cursor's API now rejects requests with outdated client versions, returning [400]: Update Required for Composer 2. Bump x-cursor-client-version from 2.3.41 to 3.1.0 across all three locations where it is set. Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -199,7 +199,7 @@ export const PROVIDERS = {
|
|||||||
"Content-Type": "application/connect+proto",
|
"Content-Type": "application/connect+proto",
|
||||||
"User-Agent": "connect-es/1.6.1"
|
"User-Agent": "connect-es/1.6.1"
|
||||||
},
|
},
|
||||||
clientVersion: "1.1.3"
|
clientVersion: "3.1.0"
|
||||||
},
|
},
|
||||||
"kimi-coding": {
|
"kimi-coding": {
|
||||||
baseUrl: KIMI_CODING_BASE_URL,
|
baseUrl: KIMI_CODING_BASE_URL,
|
||||||
|
|||||||
@@ -128,7 +128,7 @@ export function buildCursorHeaders(accessToken, machineId = null, ghostMode = tr
|
|||||||
"x-amzn-trace-id": `Root=${crypto.randomUUID()}`,
|
"x-amzn-trace-id": `Root=${crypto.randomUUID()}`,
|
||||||
"x-client-key": clientKey,
|
"x-client-key": clientKey,
|
||||||
"x-cursor-checksum": checksum,
|
"x-cursor-checksum": checksum,
|
||||||
"x-cursor-client-version": "2.3.41",
|
"x-cursor-client-version": "3.1.0",
|
||||||
"x-cursor-client-type": "ide",
|
"x-cursor-client-type": "ide",
|
||||||
"x-cursor-client-os": os,
|
"x-cursor-client-os": os,
|
||||||
"x-cursor-client-arch": arch,
|
"x-cursor-client-arch": arch,
|
||||||
|
|||||||
@@ -189,7 +189,7 @@ export const CURSOR_CONFIG = {
|
|||||||
agentEndpoint: "https://agent.api5.cursor.sh", // Privacy mode
|
agentEndpoint: "https://agent.api5.cursor.sh", // Privacy mode
|
||||||
agentNonPrivacyEndpoint: "https://agentn.api5.cursor.sh", // Non-privacy mode
|
agentNonPrivacyEndpoint: "https://agentn.api5.cursor.sh", // Non-privacy mode
|
||||||
// Client metadata
|
// Client metadata
|
||||||
clientVersion: "0.48.6",
|
clientVersion: "3.1.0",
|
||||||
clientType: "ide",
|
clientType: "ide",
|
||||||
// Token storage locations (for user reference)
|
// Token storage locations (for user reference)
|
||||||
tokenStoragePaths: {
|
tokenStoragePaths: {
|
||||||
|
|||||||
Reference in New Issue
Block a user