github / github/copilot-cli

[Bug] session-store.db not created on Windows WSL2 — no persistent session storage

Đang mở
#3,046 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
area:platform-windows area:sessions
Ngôn ngữ chính
Shell
Star
11.2k
Fork
1.9k
Merge trung bình
14 giờ 16 phút
Pull request đã merge (30 ngày)
6

Mô tả

## Summary

On Windows with WSL2, Copilot CLI does not create `session-store.db` at the expected path (`~/.copilot/session-store.db`). This means session history is not persisted in a queryable format, breaking any tooling that depends on the session database for recall or analysis.

## Steps to reproduce

1. Install Copilot CLI on Windows (WSL2 Ubuntu)
2. Run several interactive sessions
3. Check for `~/.copilot/session-store.db`
4. File does not exist

## Expected behavior

Copilot CLI should create and maintain `~/.copilot/session-store.db` with session history (sessions, turns, session_files, checkpoints tables) — same as it does on macOS and native Linux.

## Actual behavior

- `~/.copilot/session-store.db` is never created
- Session state may exist only in `~/.copilot/session-state/*/events.jsonl` (ephemeral per-session files)
- No consolidated queryable database is available

## Why this matters

- **Session continuity:** Users cannot resume or reference prior sessions reliably
- **Ecosystem tooling:** Tools like [auto-memory/session-recall](https://github.com/dezgit2025/auto-memory) depend on `session-store.db` for context recall. Without it, Windows/WSL2 users are locked out of the session recall ecosystem.
- **Parity gap:** macOS users get full session persistence; Windows/WSL2 users do not

## Environment

- OS: Windows 11 + WSL2 (Ubuntu)
- Copilot CLI: v1.0.34+
- Shell: bash (WSL2)

## Related

- [dezgit2025/auto-memory#13](https://github.com/dezgit2025/auto-memory/issues/13) — Windows user unable to create .db file using WSL
- [dezgit2025/auto-memory#3](https://github.com/dezgit2025/auto-memory/issues/3) — session-store.db not found on fresh installs

## Possible causes

1. SQLite binary or filesystem permission issue in WSL2 (NTFS vs ext4 boundary)
2. Copilot CLI conditionally skipping DB creation on WSL2
3. Different storage backend used on Windows that does not consolidate into session-store.db

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Hướng nghiên cứu

Bắt đầu bằng cách tái hiện việc thiếu ~/.copilot/session-store.db trên Windows 11 với WSL2 Ubuntu sau vài phiên tương tác, sau đó so sánh kết quả với Linux hoặc macOS bản địa. Kiểm tra xem dữ liệu phiên có vẫn chỉ nằm trong ~/.copilot/session-state/*/events.jsonl hay không. Được xem là hoàn tất khi CLI tạo và duy trì session-store.db với các bảng sessions, turns, session_files và checkpoints.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
bash, sqlite, ubuntu
Lĩnh vực
cli, database, operating-systems
Loại issue
Lỗi
Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức độ hoạt động
Ít trao đổi
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
48/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.