Skip to content

feat: add Cursor Agent as third chat provider#484

Open
darmawan01 wants to merge 4 commits intoYishenTu:mainfrom
darmawan01:main
Open

feat: add Cursor Agent as third chat provider#484
darmawan01 wants to merge 4 commits intoYishenTu:mainfrom
darmawan01:main

Conversation

@darmawan01
Copy link
Copy Markdown

@darmawan01 darmawan01 commented Apr 13, 2026

Summary

Adds Cursor Agent as a third chat provider.

Key changes

  • Register Cursor provider via subprocess Cursor CLI (agent -p, stream-json)
  • Session resume via --resume; workspace keyed by vault path (md5)
  • Hydrate history from ~/.cursor/chats SQLite store when node:sqlite is available
  • Adds settings tab, env reconciler, and title/refine/inline auxiliary runners
  • Model presets aligned with current Cursor CLI (auto, composer-2, etc.)
  • Maps legacy composer-1 to auto for CLI compatibility
  • Fix unit test to avoid developer-specific absolute path + MD5 assertion
  • Ignore local Cursor IDE .cursor/ directory

Screenshots

TBD — will add screenshot in a follow-up.

Test plan

  • npm run typecheck
  • npm run lint
  • npm run test
  • npm run build
  • Manual smoke: select Cursor provider → send message → verify streaming + cancel/resume + history load

Notes

  • History hydration requires SQLite support (node:sqlite) to be available; otherwise Cursor history load is skipped gracefully.

darmawan01 and others added 4 commits April 13, 2026 13:50
- Register cursor provider with subprocess CLI (agent -p, stream-json)
- Session resume via --resume; workspace keyed by vault path (md5)
- Hydrate history from ~/.cursor/chats SQLite store when node:sqlite is available
- Settings tab, env reconciler, title/refine/inline aux runners
- Model presets aligned with current Cursor CLI (auto, composer-2, etc.)
- Map legacy composer-1 to auto for CLI compatibility
Avoid embedding a developer-specific absolute path and MD5 in the unit test.
feat: add Cursor Agent as third chat provider
@darmawan01
Copy link
Copy Markdown
Author

darmawan01 commented Apr 13, 2026

image image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant