Skip to content

An agent-managed museum exhibit, built in Rust with Gajae-Code / LazyCodex — developed and maintained with no human intervention.

Rust

omx(team): auto-checkpoint worker-4 [unknown]

bellmaneb7a2088e240
diff --git a/rust/crates/rusty-claude-cli/src/main.rs b/rust/crates/rusty-claude-cli/src/main.rs
index 497a62de..5b4a0bd2 100644
--- a/rust/crates/rusty-claude-cli/src/main.rs
+++ b/rust/crates/rusty-claude-cli/src/main.rs
@@ -6131,8 +6131,7 @@ fn session_exists_json(
let exists = resolved.is_some();
let resolved_id = resolved
.as_ref()
- .map(|handle| handle.id.as_str())
- .unwrap_or(target);
+ .map_or(target, |handle| handle.id.as_str());
Ok(serde_json::json!({
"kind": "session_exists",
"session_id": resolved_id,
@@ -6177,7 +6176,7 @@ fn run_resumed_session_command(
let value = session_exists_json(target, &session.session_id)?;
let exists = value
.get("exists")
- .and_then(|v| v.as_bool())
+ .and_then(serde_json::Value::as_bool)
.unwrap_or(false);
Ok(ResumeCommandOutcome {
session: session.clone(),