mirror of
https://github.com/instructkr/claude-code.git
synced 2026-05-16 02:46:44 +00:00
omx(team): auto-checkpoint worker-4 [unknown]
This commit is contained in:
@@ -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(),
|
||||
|
||||
Reference in New Issue
Block a user