Skip to content

feat: add Copilot CLI and Cursor CLI session support#19

Open
saitota wants to merge 5 commits into
zippoxer:mainfrom
saitota:feat/copilot-cursor-support
Open

feat: add Copilot CLI and Cursor CLI session support#19
saitota wants to merge 5 commits into
zippoxer:mainfrom
saitota:feat/copilot-cursor-support

Conversation

@saitota
Copy link
Copy Markdown

@saitota saitota commented Mar 3, 2026

Summary

Adds session support for Copilot CLI and Cursor Agent CLI.

  • Copilot: parses ~/.copilot/session-state/*/events.jsonl, resume via copilot --resume={id}
  • Cursor: parses ~/.cursor/projects/*/agent-transcripts/*.jsonl (JSONL), resume via cursor-agent --resume={id}

Tests

  • cargo test
  • cargo clippy
  • Manually verified Cursor session resume with correct directory change on macOS

saitota added 3 commits March 12, 2026 18:10
… resume

Cursor CLI sessions live in ~/.cursor/projects/*/agent-transcripts/*.jsonl,
not the GUI SQLite store. Rewrote parser to read JSONL format.

decode_workspace_path now walks the filesystem and encodes each candidate
path using Cursor's own encoding (non-alphanum → '-', collapse runs),
fixing incorrect cwd that caused cursor-agent --resume to start new sessions.

Removed rusqlite, base64, hex dependencies. DRY'd extract_text_content
across Claude and Cursor parsers.
@saitota saitota force-pushed the feat/copilot-cursor-support branch from 6b3a65d to ef6eb6d Compare March 12, 2026 10:25
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