Skip to content

desktop/src-tauri/crates/core/examples/real_verify_copilot_chat.rs

Comment 1, line 1

desktop/src-tauri/crates/core/examples/real_verify_copilot_chat.rs:1

//! Read-only checks of native VS Code Copilot Chat sessions

Comment 2, line 2

desktop/src-tauri/crates/core/examples/real_verify_copilot_chat.rs:2

//! at workspaceStorage/<hash>/chatSessions/<sessionId>.jsonl.

Comment 3, line 3

desktop/src-tauri/crates/core/examples/real_verify_copilot_chat.rs:3

//! First run: 2026-10-01, VS Code 1.140.0, ten requests.

Comment 4, line 4

desktop/src-tauri/crates/core/examples/real_verify_copilot_chat.rs:4

//! Output only permitted root/event/token/distinct-model/diagnostic counts

Comment 5, line 5

desktop/src-tauri/crates/core/examples/real_verify_copilot_chat.rs:5

//! and rescan stability, without paths, session IDs or record content.

Comment 6, line 6

desktop/src-tauri/crates/core/examples/real_verify_copilot_chat.rs:6

//! Usage: cargo run -p llm-usage-core --example real_verify_copilot_chat -- <chatSessions-dir-or-jsonl-or-workspaceStorage> <work_dir> [--reuse] [--timezone=Asia/Shanghai]

Comment 7, line 7

desktop/src-tauri/crates/core/examples/real_verify_copilot_chat.rs:7

//! --reuse preserves old cursors only in isolated build/ databases; never pass an active user DB.

Comment 8, line 64

desktop/src-tauri/crates/core/examples/real_verify_copilot_chat.rs:64

// Do not print instance_id, which contains local paths excluded by the output rules.

Comment 9, line 96

desktop/src-tauri/crates/core/examples/real_verify_copilot_chat.rs:96

// Repeated scans add nothing when content is unchanged.