From 633436e40fbbd94ee574532ff08eef4b5cfa4377 Mon Sep 17 00:00:00 2001 From: cflmy Date: Wed, 18 Nov 2026 09:39:53 +0800 Subject: [PATCH] fix(agent): compare owned JSON values with dereferenced optional identity values --- plugins/agent/src/input.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/agent/src/input.rs b/plugins/agent/src/input.rs index 8100f23..f01a935 100644 --- a/plugins/agent/src/input.rs +++ b/plugins/agent/src/input.rs @@ -95,8 +95,8 @@ pub fn input_open(args: &Value) -> Result { let same = meta["question"] == query && meta["options"] == labels && meta["source_revision"] == version - && meta["session_id"] == args.get("session_id").unwrap_or(&Value::Null) - && meta["principal_ref"] == args.get("principal_ref").unwrap_or(&Value::Null); + && meta["session_id"] == *args.get("session_id").unwrap_or(&Value::Null) + && meta["principal_ref"] == *args.get("principal_ref").unwrap_or(&Value::Null); if same && existing["ok"] == true { let status = existing["status"].as_str().unwrap_or("unknown"); return Ok(json!({