Skip to content

desktop/src-tauri/crates/core/src/adapters/codex/reader.rs

Comment 1, line 1

desktop/src-tauri/crates/core/src/adapters/codex/reader.rs:1

//! Stream oversized records without retaining non-usage bodies.

Comment 2, line 82

desktop/src-tauri/crates/core/src/adapters/codex/reader.rs:82

/// Ignore oversized payload fields, retaining only compaction's usage-bearing record.

Comment 3, line 83

desktop/src-tauri/crates/core/src/adapters/codex/reader.rs:83

/// Non-object payloads remain valid ignored JSON rather than becoming record errors.

Comment 4, line 195

desktop/src-tauri/crates/core/src/adapters/codex/reader.rs:195

// Derived structs also accept positional arrays; only native objects may advance.

Comment 5, line 210

desktop/src-tauri/crates/core/src/adapters/codex/reader.rs:210

/// Read at most one line, checking UTF-8 even in JSON values ignored by serde.

Comment 6, line 257

desktop/src-tauri/crates/core/src/adapters/codex/reader.rs:257

/// Keep the ordinary limit for usage, unknown types and malformed records. Complete,

Comment 7, line 258

desktop/src-tauri/crates/core/src/adapters/codex/reader.rs:258

/// valid response_item/world_state records retain only their type. Compacted records

Comment 8, line 259

desktop/src-tauri/crates/core/src/adapters/codex/reader.rs:259

/// retain their timestamp and latest_token_usage_record for boundary usage recovery.

Comment 9, line 285

desktop/src-tauri/crates/core/src/adapters/codex/reader.rs:285

// Cancellation and source deadlines must reach the framework, including when

Comment 10, line 286

desktop/src-tauri/crates/core/src/adapters/codex/reader.rs:286

// serde wraps the IO error as a JSON error.

Comment 11, line 311

desktop/src-tauri/crates/core/src/adapters/codex/reader.rs:311

// Resume after this complete record in the next bounded scan window.