Add to chat visuals are not working

Hello!

When trying to add selected text to chat it does not seem to work. The most frustrating thing about this issue is it is intermittent. It will work for a bit then suddenly stop with no changes to the host Mac.

Version: 0.42.3
VSCode Version: 1.93.1
Commit: 949de58bd3d85d530972cac2dffc4feb9eee1e40
Date: 2024-10-16T17:56:07.754Z
Electron: 30.4.0
Chromium: 124.0.6367.243
Node.js: 20.15.1
V8: 12.4.254.20-electron.0
OS: Darwin arm64 24.0.0

List of troubleshooting steps taken

  • Uninstalled Cursor
  • Removed App user data ~/Library/Application Support/Cursor
  • Removed user cursor config rm -rf ~/.cursor*
  • Rebooted
  • Reinstalled using the Cursor installer and again using brew install --cask cursor
  • No VPN or Zscaler
  • Quit as many background apps as possible to avoid conflicts
  • signed out of Pro account and back in

Steps to reproduce:

  • Opened using cursor --disable-extensions
  • Paste in some text. logs, instructions, file etc
  • CMD + A to select all then Add to Chat using default keyboard shortcut Shift + CMD + L
  • Chat sidebar pops up, but no text context shows.
  • Without adding additional context, pressing Enter begins the AI query. It can read whatever was pasted but shows no evidence that it had context.

Attached video

Main logs

2024-10-27 00:59:03.676 [debug] Starting VS Code
2024-10-27 00:59:03.676 [debug] from: /Applications/Cursor.app/Contents/Resources/app
2024-10-27 00:59:03.676 [debug] args: {"_":[],"diff":false,"merge":false,"add":false,"goto":false,"new-window":false,"reuse-window":false,"wait":false,"help":false,"list-extensions":false,"show-versions":false,"pre-release":false,"update-extensions":false,"version":false,"verbose":false,"log":["debug"],"status":false,"prof-startup":false,"no-cached-data":false,"prof-v8-extensions":false,"disable-extensions":false,"disable-lcd-text":false,"disable-gpu":false,"disable-chromium-sandbox":false,"sandbox":false,"telemetry":false,"debugRenderer":false,"enable-smoke-test-driver":false,"logExtensionHostCommunication":false,"skip-release-notes":false,"skip-welcome":false,"skip-onboarding":false,"disable-telemetry":false,"disable-updates":false,"use-inmemory-secretstorage":false,"disable-workspace-trust":false,"disable-crash-reporter":false,"skip-add-to-recently-opened":false,"open-url":false,"file-write":false,"file-chmod":false,"force":false,"do-not-sync":false,"trace":false,"preserve-env":false,"force-user-env":false,"force-disable-user-env":false,"open-devtools":false,"disable-gpu-sandbox":false,"__enable-file-policy":false,"enable-coi":false,"no-proxy-server":false,"no-sandbox":false,"nolazy":false,"force-renderer-accessibility":false,"ignore-certificate-errors":false,"allow-insecure-localhost":false,"disable-dev-shm-usage":false,"profile-temp":false,"logsPath":"/Users/johnny/Library/Application Support/Cursor/logs/20241027T005903"}
2024-10-27 00:59:03.714 [info] update#setState disabled
2024-10-27 00:59:03.714 [info] update#ctor - updates are disabled as there is no update URL
2024-10-27 00:59:03.777 [error] [storage state.vscdb] error checking size of src.vs.platform.reactivestorage.browser.reactiveStorageServiceImpl.persistentStorage.workspaceUser: Error: Unexpected number of rows - 0
2024-10-27 00:59:03.777 [error] [storage state.vscdb] error checking size of composer.composerData: Error: Unexpected number of rows - 0
2024-10-27 00:59:03.783 [error] [uncaught exception in main]: Error: SQLITE_CANTOPEN: unable to open database file
2024-10-27 00:59:03.784 [error] Error: SQLITE_CANTOPEN: unable to open database file
2024-10-27 00:59:03.985 [error] [storage state.vscdb] error checking size of workbench.panel.aichat.view.aichat.chatdata: Error: Unexpected number of rows - 0
2024-10-27 00:59:04.376 [debug] Terminal profile not validated pwsh ["pwsh"]
2024-10-27 00:59:04.376 [debug] Terminal profile not validated tmux ["tmux"]
2024-10-27 00:59:05.103 [debug] ProxyResolver#loadSystemCertificates count 37
2024-10-27 00:59:05.105 [debug] ProxyResolver#loadSystemCertificates count filtered 20


Hi @kryptionx

Yeah, I’ve noticed that too. It only happens when there’s no project open, just a single file. It doesn’t show the added context in the chat, but the AI can see it. Thanks for sharing this.

1 Like

Welp, sure enough. If I open a directory the context visuals start working again. How frustrating. Thank you though! I’ll keep an eye out if it continues.

1 Like