What happened to defaultNoContext?

We configured the setting "cursor.chat.defaultNoContext": true on .vscode/settings.json to prevent Cursor from automatically adding the current file to the chat.

(got it from this forum post: .cursorignore not being used - #7 by rubycon)

Today I noticed that setting is not valid any longer:

Asked Chat how to prevent files from being automatically added to it, it said to use "ai.contextStrategy": "none" on .cursor/settings.json.

I created that file and used Tab to autocomplete other options there too:

{
  "ai.contextStrategy": "none",
  "ai.chat.defaultNoContext": true,
  "cursor.chat.defaultNoContext": true
}

No combination of that works, files are still automatically added to Chat (restarted Cursor multiple times).

The documentation (Cursor - Build Software Faster) is also not helpful: it refers to Default to no context under Cursor Settings > Features > Chat, which doesn’t exist any longer.

Version info

Version: 0.43.5
VSCode Version: 1.93.1
Commit: 2eaa79a1b14ccff5d1c78a2c358a08be16a8e5a0
Date: 2024-11-27T09:11:51.854Z
Electron: 30.5.1
Chromium: 124.0.6367.243
Node.js: 20.16.0
V8: 12.4.254.20-electron.0
OS: Darwin arm64 22.6.0

The lack of consistency and care with privacy and security is hindering Cursor as a code assistant alternative.

1 Like

hey! i’ll look into this and get back to you!

1 Like

What’s the status of this, please?

This is a very concerning issue and as subscribers of Cursor we expect a quicker response.

1 Like

Pinging @ericzakariasson

Probably related to Cursor can see my API Key but how? - #2 by leite08

yes, this is the answer:

you can also check the docs on this:

+1 running into this as well

Hey, @ericzakariasson. Thanks for getting back to us.

I understand the indexing of the codebase and the ignore files, but:

  1. You didn’t address the point about stale docs, stating an option that prevents files/tabs being sent to Chat/Composer, and that this option silently got removed;
  2. Are we expected to accept sensitive information being sent over the wire if we open Chat and/or Composer?

This is a critical consideration for us to keep using Cursor.

Thank you,
Rafael

1 Like

Also, see this: “Cursor Tab… will run on any open file unless you have cpp disabled on the file’s language.”

We set Cursor for our org considering the ability to not send tabs/files to chat (and Composer) automatically.

good catch, we’ll update the docs! many things changing, so we’ve fallen behind with that. i’ll make sure to keep them more up to date!

i’d say yes to that. ignore files like .cursorrules only prevent the file content from being indexed. chat & composer has access to all files in their context. we’re rolling out a feature that respects ignore files when building the context. you can read more here and here

hope this clears up some things. happy to dig deeper if there’s anything that’s unclear or that i’ve missed