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) <[email protected]>
This commit is contained in:
Zaki
2026-03-23 05:56:35 -07:00
co-authored by Claude Opus 4.6
parent 1b75295f36
commit b6e72cc7d5
+1 -1
View File
@@ -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);
}