fix idle timer: daemon agent calls were resetting user activity
The daemon's claude -p subprocesses inherit hooks config, so every agent LLM call triggered UserPromptSubmit → signal_user(), making the idle timer think Kent was always active. The daemon was petting its own tail. Fix: set POC_AGENT=1 env var on all daemon claude subprocesses, and return early from poc-hook when it's set.
This commit is contained in:
parent
ea30a2dca4
commit
9e52fd5b95
2 changed files with 10 additions and 0 deletions
|
|
@ -59,6 +59,9 @@ fn call_model(agent: &str, model: &str, prompt: &str) -> Result<String, String>
|
|||
cmd.env("CLAUDE_CONFIG_DIR", dir);
|
||||
}
|
||||
|
||||
// Tell hooks this is a daemon agent call, not interactive
|
||||
cmd.env("POC_AGENT", "1");
|
||||
|
||||
let start = std::time::Instant::now();
|
||||
|
||||
let result = unsafe {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue