diff options
| author | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-05-21 22:15:01 +0300 |
|---|---|---|
| committer | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-05-21 22:17:37 +0300 |
| commit | 659badf106786f5611e750de0e4936e47c69a3d4 (patch) | |
| tree | 3cad8ed17a4e4d91d5e178e953a2349e6afa4b42 /src/pane/osc.rs | |
| parent | f7fa9486855c824bcd7e783e2d3eb4d12ad85205 (diff) | |
fix: avoid agent detection from runtime arguments
refs #238
Diffstat (limited to 'src/pane/osc.rs')
| -rw-r--r-- | src/pane/osc.rs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/pane/osc.rs b/src/pane/osc.rs index b5278125..0f04b045 100644 --- a/src/pane/osc.rs +++ b/src/pane/osc.rs @@ -376,6 +376,7 @@ mod tests { pid: shell_pid, name: "zsh".to_string(), argv0: Some("zsh".to_string()), + argv: Some(vec!["zsh".to_string()]), cmdline: Some("zsh".to_string()), }], } @@ -550,6 +551,10 @@ mod tests { pid: 42, name: "droid".to_string(), argv0: None, + argv: Some(vec![ + "/opt/factory/droid".to_string(), + "--resume".to_string(), + ]), cmdline: Some("/opt/factory/droid --resume".to_string()), }], }; @@ -561,6 +566,11 @@ mod tests { pid: 42, name: "bun".to_string(), argv0: Some("bun".to_string()), + argv: Some(vec![ + "bun".to_string(), + "/home/can/.local/bin/droid".to_string(), + "--resume".to_string(), + ]), cmdline: Some("/home/can/.local/bin/droid --resume".to_string()), }], }; @@ -584,6 +594,7 @@ mod tests { pid: 42, name: "droid".to_string(), argv0: Some("droid".to_string()), + argv: Some(vec!["droid".to_string()]), cmdline: Some("droid".to_string()), }], }; @@ -626,6 +637,7 @@ mod tests { pid: 42, name: "droid".to_string(), argv0: Some("droid".to_string()), + argv: Some(vec!["droid".to_string()]), cmdline: Some("droid".to_string()), }], }), |
