desktop/src-tauri/crates/core/src/adapters/copilot/detect.rs
Comment 1, line 1
desktop/src-tauri/crates/core/src/adapters/copilot/detect.rs:1
//! Detect Copilot CLI through session-store.db assistant_usage_events columns.Comment 2, line 23
desktop/src-tauri/crates/core/src/adapters/copilot/detect.rs:23
// Transient antivirus/product locks cause Pending and retry on a later scan;Comment 3, line 24
desktop/src-tauri/crates/core/src/adapters/copilot/detect.rs:24
// do not persist them as UnknownFormat.Comment 4, line 57
desktop/src-tauri/crates/core/src/adapters/copilot/detect.rs:57
// If assistant_usage_events/required columns are absent, check the newer CopilotComment 5, line 58
desktop/src-tauri/crates/core/src/adapters/copilot/detect.rs:58
// chronicle store verified locally on 2026-09-30 and in cli-config-dir-reference.Comment 6, line 59
desktop/src-tauri/crates/core/src/adapters/copilot/detect.rs:59
// The checked session-store.db is a checkpoint/search index;Comment 7, line 60
desktop/src-tauri/crates/core/src/adapters/copilot/detect.rs:60
// per-call usage moved elsewhere. Matching tables identify Copilot but lack verified per-call usage.Comment 8, line 61
desktop/src-tauri/crates/core/src/adapters/copilot/detect.rs:61
// Return UnsupportedVersion without fallback, rather than misidentifying it as unrelated SQLite.Comment 9, line 84
desktop/src-tauri/crates/core/src/adapters/copilot/detect.rs:84
// Matching columns use schema_version for V30 selection; native checked version=8.Comment 10, line 85
desktop/src-tauri/crates/core/src/adapters/copilot/detect.rs:85
// Registered versions use KnownVersion; absent/other versions try LatestFallback without claiming verified support.Comment 11, line 95
desktop/src-tauri/crates/core/src/adapters/copilot/detect.rs:95
/// Newer Copilot checkpoint/search schema requires all four tables:Comment 12, line 96
desktop/src-tauri/crates/core/src/adapters/copilot/detect.rs:96
/// sessions/turns/checkpoints/search_index. It distinguishes chronicleComment 13, line 97
desktop/src-tauri/crates/core/src/adapters/copilot/detect.rs:97
/// (UnsupportedVersion) from unrelated databases (UnknownFormat).Comment 14, line 141
desktop/src-tauri/crates/core/src/adapters/copilot/detect.rs:141
// Checked newer CLI layout: chronicle/search index, without assistant_usage_events.