From b6e72cc7d5f0394b73e2695e7ab12ab0773a7108 Mon Sep 17 00:00:00 2001 From: Zaki Date: Mon, 23 Mar 2026 05:56:23 -0700 Subject: [PATCH] fix(agent): use None for bootstrap thread source_channel The bootstrap/hydration path has no incoming message, so hardcoding "gateway" was incorrect. Use None to indicate no known source channel, which permits approval from any channel (backward-compatible). Addresses Gemini review feedback on #1582. Co-Authored-By: Claude Opus 4.6 (1M context) --- src/agent/agent_loop.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/agent/agent_loop.rs b/src/agent/agent_loop.rs index 5da7320b..073c87a6 100644 --- a/src/agent/agent_loop.rs +++ b/src/agent/agent_loop.rs @@ -731,7 +731,7 @@ impl Agent { { use crate::agent::session::Thread; let mut sess = session.lock().await; - let thread = Thread::with_id(id, sess.id, Some("gateway")); + let thread = Thread::with_id(id, sess.id, None); sess.active_thread = Some(id); sess.threads.entry(id).or_insert(thread); }