Skip to content

Commit fec254f

Browse files
authored
fix: Better pgrep matching for codex and gemini (#20)
* fix: Better pgrep matching for codex and gemini * gemini
1 parent 08bf99b commit fec254f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/daemon.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -328,10 +328,10 @@ async fn get_agent_pids() -> anyhow::Result<Vec<(Agent, String)>> {
328328
.args(["-x", "claude"])
329329
.output(),
330330
tokio::process::Command::new("pgrep")
331-
.args(["-f", "codex"])
331+
.args(["-x", "codex"])
332332
.output(),
333333
tokio::process::Command::new("pgrep")
334-
.args(["-f", "gemini"])
334+
.args(["-f", r"(^|/)gemini($| )"])
335335
.output(),
336336
);
337337
let pids = String::from_utf8_lossy(&output_claude?.stdout)

0 commit comments

Comments
 (0)