Skip to content

Add JSONL backend support for Copilot CLI 1.0.34+#4

Open
rahulagr96 wants to merge 2 commits intodezgit2025:mainfrom
rahulagr96:bug/support_copilot_cli_1.0.34
Open

Add JSONL backend support for Copilot CLI 1.0.34+#4
rahulagr96 wants to merge 2 commits intodezgit2025:mainfrom
rahulagr96:bug/support_copilot_cli_1.0.34

Conversation

@rahulagr96
Copy link
Copy Markdown

@rahulagr96 rahulagr96 commented Apr 22, 2026

What this PR does

Adds JSONL backend support to auto-memory to work with Copilot CLI 1.0.34+. The session store now gracefully falls back to JSONL format (from
~/.copilot/session-state/) when SQLite databases are unavailable.

Key changes:

  • Created JSONLStore class to handle JSONL session data with full read support
  • Modified connect_ro() to auto-detect and connect to either SQLite or JSONL stores
  • Added JSONLStoreAdapter to provide a sqlite3.Connection-like interface for JSONL stores
  • Updated schema validation to work with both storage formats
  • Fixed test_connect_missing_db to properly test the new fallback behavior

This ensures backwards compatibility while supporting the new Copilot CLI session storage format.

Type of change

  • Feature
  • Bug fix
  • Docs

Related issue

[Bug] Support Copilot CLI 1.0.34 session-state DB schema (session-store.db no longer present)

Checklist

  • Tests pass (pytest src/session_recall/tests/ -q) — 90 passed
  • Ruff clean (ruff check src/) — all new code passing
  • Docs updated if needed — inline docstrings added
  • No new dependencies — stdlib only

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