Describe the bug
When running CodeGraph Context in Cursor Agent mode, I receive the following error:
Error: task must be a non-empty string
Query used:
{
"query": "blog implementation posts articles content"
}
Steps to Reproduce:
- Open Cursor in Agent mode
- Trigger CodeGraph Context
- Use a query containing multiple words / spaces
- The error appears
Expected behavior
CodeGraph should successfully return relevant context instead of throwing this error.
Environment:
- Cursor version: Version: 3.6.25
- CodeGraph: Latest (integrated in Cursor)
Additional context
It seems the task parameter is becoming empty or invalid after processing the query string (possibly due to trimming or parsing issues).
Screenshots:

Describe the bug
When running CodeGraph Context in Cursor Agent mode, I receive the following error:
Query used:
{ "query": "blog implementation posts articles content" }Steps to Reproduce:
Expected behavior
CodeGraph should successfully return relevant context instead of throwing this error.
Environment:
Additional context
It seems the
taskparameter is becoming empty or invalid after processing the query string (possibly due to trimming or parsing issues).Screenshots: