Cursor reinstallation caused composer to lose project context

To solve an issue with Cursor o1-preview access, I did an uninstall, deleted caches etc. as per your support team’s guidance.
Then I reinstalled cursor. That seems to have created new issues for me.

  1. Composer is not getting the project context by default.

  2. when I try to execute through o1 with my own API key, I get the issue saying "Cursor Pro required. Composer relies on custom models that cannot be billed to an API key. Please disable API keys and use a Pro or Business subscription. a5b08ed9-114f-4021-ac01-5a5d1f877a15
    I do have cursor pro subscription.

  3. I see the following issue.
    workbench.desktop.main.js:3012 Error in useAutoHorizontalScroll effect: DOMException: Failed to execute ‘querySelector’ on ‘Element’: ‘#8d88179afa434872b1676035cafd5313-tab-0’ is not a valid selector.
    at vscode-file://vscode-app/c:/Users/Karthik/AppData/Local/Programs/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:1477:1959
    at vscode-file://vscode-app/c:/Users/Karthik/AppData/Local/Programs/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:266:185733
    at ne (vscode-file://vscode-app/c:/Users/Karthik/AppData/Local/Programs/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:266:185501)
    at Object.fn (vscode-file://vscode-app/c:/Users/Karthik/AppData/Local/Programs/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:266:185726)
    at Ye (vscode-file://vscode-app/c:/Users/Karthik/AppData/Local/Programs/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:266:188643)
    at We (vscode-file://vscode-app/c:/Users/Karthik/AppData/Local/Programs/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:266:188410)
    at Je (vscode-file://vscode-app/c:/Users/Karthik/AppData/Local/Programs/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:266:190033)
    at Pe (vscode-file://vscode-app/c:/Users/Karthik/AppData/Local/Programs/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:266:191284)
    at vscode-file://vscode-app/c:/Users/Karthik/AppData/Local/Programs/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:266:190898
    at Te (vscode-file://vscode-app/c:/Users/Karthik/AppData/Local/Programs/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:266:190213)
    at De (vscode-file://vscode-app/c:/Users/Karthik/AppData/Local/Programs/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:266:190891)
    at Te (vscode-file://vscode-app/c:/Users/Karthik/AppData/Local/Programs/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:266:190225)
    at ie (vscode-file://vscode-app/c:/Users/Karthik/AppData/Local/Programs/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:266:185422)
    at v.B [as setAllComposersData] (vscode-file://vscode-app/c:/Users/Karthik/AppData/Local/Programs/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:266:207570)
    at ft.submitChatMaybeAbortCurrent (vscode-file://vscode-app/c:/Users/Karthik/AppData/Local/Programs/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:4452:7491)
    at async vscode-file://vscode-app/c:/Users/Karthik/AppData/Local/Programs/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:4449:19887
    workbench.html:1 Access to fetch at ‘https://api2.cursor.sh/auth/full_stripe_profile’ from origin ‘vscode-file://vscode-app’ has been blocked by CORS policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource. If an opaque response serves your needs, set the request’s mode to ‘no-cors’ to fetch the resource with CORS disabled.
    api2.cursor.sh/auth/…ll_stripe_profile:1
    Failed to load resource: net::ERR_FAILED

Now my cursor is in an unusable state. There are other errors as well. Sadly, cursor is now not in a usable state for me at all.

I am sorry for the trouble @knaig. Could you log out of Cursor, restart your computer, log in and try again?

Oh, I have just learned that Composer will only work with a subscription, not a custom API key. I am sorry about that. If you need to use Composer, you have to disable your custom API Key temporarily.