From cf3769feb9837c6040820c3e6096c5cc2907adc0 Mon Sep 17 00:00:00 2001 From: Ogulcan Celik Date: Thu, 2 Jul 2026 13:58:26 +0300 Subject: feat: follow focused pane cwd for new workspaces refs #919 --- src/app/api.rs | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'src/app/api.rs') diff --git a/src/app/api.rs b/src/app/api.rs index eeb1127f..8743c08f 100644 --- a/src/app/api.rs +++ b/src/app/api.rs @@ -1157,6 +1157,27 @@ fn agent_manifest_info( } } +#[cfg(test)] +pub(super) mod test_support { + pub(crate) fn exiting_test_command() -> &'static str { + #[cfg(windows)] + { + "C:\\Windows\\System32\\whoami.exe" + } + #[cfg(not(windows))] + { + "/usr/bin/true" + } + } + + pub(crate) fn shutdown_test_runtimes(app: &mut crate::app::App) { + let runtimes: Vec<_> = app.terminal_runtimes.drain().collect(); + for (_terminal_id, runtime) in runtimes { + runtime.shutdown(); + } + } +} + #[cfg(test)] mod tests { use super::*; -- cgit v1.2.3