desktop/src-tauri/crates/core/src/adapters/openclaw/common.rs
Comment 1, line 1
desktop/src-tauri/crates/core/src/adapters/openclaw/common.rs:1
//! OpenClaw-specific shared helpers under the independent adapter-directory convention:Comment 2, line 2
desktop/src-tauri/crates/core/src/adapters/openclaw/common.rs:2
//! - Read-only database helpers copied from `adapters/kilo/common.rs`; each Agent keepsComment 3, line 3
desktop/src-tauri/crates/core/src/adapters/openclaw/common.rs:3
//! its own module with product-specific prefixes and comments.Comment 4, line 4
desktop/src-tauri/crates/core/src/adapters/openclaw/common.rs:4
//! - Read-only schema/ownership checks inspect columns and primary metadata, without transcripts.Comment 5, line 5
desktop/src-tauri/crates/core/src/adapters/openclaw/common.rs:5
//!Comment 6, line 6
desktop/src-tauri/crates/core/src/adapters/openclaw/common.rs:6
//! References and checks: A09, official docs.openclaw.ai, checked 2026-09-24.Comment 7, line 7
desktop/src-tauri/crates/core/src/adapters/openclaw/common.rs:7
//! - Store: one `~/.openclaw/agents/<agentId>/agent/openclaw-agent.sqlite` per Agent,Comment 8, line 8
desktop/src-tauri/crates/core/src/adapters/openclaw/common.rs:8
//! with session rows and append-only transcripts; legacy `sessions/` andComment 9, line 9
desktop/src-tauri/crates/core/src/adapters/openclaw/common.rs:9
//! `sessions/sessions.json` are migration/archive inputs not imported at Gateway startup.Comment 10, line 10
desktop/src-tauri/crates/core/src/adapters/openclaw/common.rs:10
//! - Schema 24, official 2026.9.8 installation and real CLI samples checked; full rules:Comment 11, line 11
desktop/src-tauri/crates/core/src/adapters/openclaw/common.rs:11
//! docs/design/desktop-usage/openclaw-runtime.md.Comment 12, line 19
desktop/src-tauri/crates/core/src/adapters/openclaw/common.rs:19
/// Read-only source access; busy-like probe failures switch to a staging snapshot.Comment 13, line 43
desktop/src-tauri/crates/core/src/adapters/openclaw/common.rs:43
/// SQLite busy/locked/CANTOPEN errors prevent a successful consistency probe.Comment 14, line 53
desktop/src-tauri/crates/core/src/adapters/openclaw/common.rs:53
/// Staging limits follow the kilo/hermes convention.Comment 15, line 113
desktop/src-tauri/crates/core/src/adapters/openclaw/common.rs:113
// More means pages were copied; count those pages toward the size limit.Comment 16, line 124
desktop/src-tauri/crates/core/src/adapters/openclaw/common.rs:124
// Busy/Locked or other non-exhaustive results retry without progress, within the timeout.Comment 17, line 125
desktop/src-tauri/crates/core/src/adapters/openclaw/common.rs:125
// 2026-09-30 fix: retries previously added pages and raced the timeout, causingComment 18, line 126
desktop/src-tauri/crates/core/src/adapters/openclaw/common.rs:126
// platform-specific false size-limit failures (Linux CI hit the page cap before timeout).Comment 19, line 175
desktop/src-tauri/crates/core/src/adapters/openclaw/common.rs:175
/// Check structure/ownership only; database schema does not identify historical client versions.