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:
parent
00448b389b
commit
32a746181a
3 changed files with 3 additions and 3 deletions
|
|
@ -199,7 +199,7 @@ export const PROVIDERS = {
|
|||
"Content-Type": "application/connect+proto",
|
||||
"User-Agent": "connect-es/1.6.1"
|
||||
},
|
||||
clientVersion: "1.1.3"
|
||||
clientVersion: "3.1.0"
|
||||
},
|
||||
"kimi-coding": {
|
||||
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-client-key": clientKey,
|
||||
"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-os": os,
|
||||
"x-cursor-client-arch": arch,
|
||||
|
|
|
|||
|
|
@ -189,7 +189,7 @@ export const CURSOR_CONFIG = {
|
|||
agentEndpoint: "https://agent.api5.cursor.sh", // Privacy mode
|
||||
agentNonPrivacyEndpoint: "https://agentn.api5.cursor.sh", // Non-privacy mode
|
||||
// Client metadata
|
||||
clientVersion: "0.48.6",
|
||||
clientVersion: "3.1.0",
|
||||
clientType: "ide",
|
||||
// Token storage locations (for user reference)
|
||||
tokenStoragePaths: {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue