Skip to content

desktop/src-tauri/crates/core/src/adapters/copilot_chat/detect.rs

Comment 1, line 1

desktop/src-tauri/crates/core/src/adapters/copilot_chat/detect.rs:1

//! Detect VS Code Copilot Chat logs from the first {kind:0, v:{version,...}} record.

Comment 2, line 2

desktop/src-tauri/crates/core/src/adapters/copilot_chat/detect.rs:2

//!

Comment 3, line 3

desktop/src-tauri/crates/core/src/adapters/copilot_chat/detect.rs:3

//! objectMutationLog.ts allows Initial, kind 0, only first, with the complete initial

Comment 4, line 4

desktop/src-tauri/crates/core/src/adapters/copilot_chat/detect.rs:4

//! object; chatSessionOperationLog.ts storageSchema fixes version: 3.

Comment 5, line 5

desktop/src-tauri/crates/core/src/adapters/copilot_chat/detect.rs:5

//! Compact rewrites also begin with Initial containing full current state, possibly large.

Comment 6, line 6

desktop/src-tauri/crates/core/src/adapters/copilot_chat/detect.rs:6

//! Bound the first-line read to the JSONL reader limit, 8 MiB.

Comment 7, line 17

desktop/src-tauri/crates/core/src/adapters/copilot_chat/detect.rs:17

/// First-line size limit, matching the JSONL reader.

Comment 8, line 20

desktop/src-tauri/crates/core/src/adapters/copilot_chat/detect.rs:20

/// Read without newline; return None when too large to identify.

Comment 9, line 28

desktop/src-tauri/crates/core/src/adapters/copilot_chat/detect.rs:28

// Empty file has nothing to identify yet.

Comment 10, line 36

desktop/src-tauri/crates/core/src/adapters/copilot_chat/detect.rs:36

// Skip UTF-8 BOM.

Comment 11, line 66

desktop/src-tauri/crates/core/src/adapters/copilot_chat/detect.rs:66

// Initial: kind==0 and object v containing session state, such as sessionId/requests.