mirror of
https://github.com/instructkr/claw-code.git
synced 2026-05-18 21:41:26 +08: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 exists = resolved.is_some();
|
||||||
let resolved_id = resolved
|
let resolved_id = resolved
|
||||||
.as_ref()
|
.as_ref()
|
||||||
.map(|handle| handle.id.as_str())
|
.map_or(target, |handle| handle.id.as_str());
|
||||||
.unwrap_or(target);
|
|
||||||
Ok(serde_json::json!({
|
Ok(serde_json::json!({
|
||||||
"kind": "session_exists",
|
"kind": "session_exists",
|
||||||
"session_id": resolved_id,
|
"session_id": resolved_id,
|
||||||
@@ -6177,7 +6176,7 @@ fn run_resumed_session_command(
|
|||||||
let value = session_exists_json(target, &session.session_id)?;
|
let value = session_exists_json(target, &session.session_id)?;
|
||||||
let exists = value
|
let exists = value
|
||||||
.get("exists")
|
.get("exists")
|
||||||
.and_then(|v| v.as_bool())
|
.and_then(serde_json::Value::as_bool)
|
||||||
.unwrap_or(false);
|
.unwrap_or(false);
|
||||||
Ok(ResumeCommandOutcome {
|
Ok(ResumeCommandOutcome {
|
||||||
session: session.clone(),
|
session: session.clone(),
|
||||||
|
|||||||
Reference in New Issue
Block a user