mirror of
https://github.com/outbackdingo/optimclaw.git
synced 2026-08-25 14:53:34 +00:00
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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user