diff --git a/src/claude/idle.rs b/src/claude/idle.rs index 43e536b..b68225d 100644 --- a/src/claude/idle.rs +++ b/src/claude/idle.rs @@ -78,13 +78,10 @@ impl State { pub fn send(&self, msg: &str) -> bool { let pane = match &self.claude_pane { Some(p) => p.clone(), - None => match tmux::find_claude_pane() { - Some(p) => p, - None => { - info!("send: no claude pane found"); - return false; - } - }, + None => { + info!("send: no claude pane set (waiting for hook)"); + return false; + } }; let ok = tmux::send_prompt(&pane, msg); let preview: String = msg.chars().take(80).collect(); @@ -131,10 +128,7 @@ impl State { self.inner.decay_ewma(); self.inner.notifications.ingest_legacy_files(); - // Find pane if we don't have one - if self.claude_pane.is_none() { - self.claude_pane = tmux::find_claude_pane(); - } + // Pane is set by poc-hook on user/response events — don't scan globally // Sleep mode if let Some(wake_at) = self.inner.sleep_until {