diff options
| author | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-07-15 03:58:07 +0300 |
|---|---|---|
| committer | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-07-15 04:02:14 +0300 |
| commit | 2c7c8beb079c5fd58a2e53efd2058df050ad9f55 (patch) | |
| tree | 6756f671dc728d915b1d6ebececa8cf7f70b66fb /src/terminal | |
| parent | 88370e1516182ab519d22a12fa82d5780a40fee6 (diff) | |
feat: add floating popup panes
refs #1125
Diffstat (limited to 'src/terminal')
| -rw-r--r-- | src/terminal/runtime.rs | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/terminal/runtime.rs b/src/terminal/runtime.rs index 29d19140..1d19ad4a 100644 --- a/src/terminal/runtime.rs +++ b/src/terminal/runtime.rs @@ -148,6 +148,7 @@ impl TerminalRuntime { cwd: std::path::PathBuf, command: &str, launch_env: &crate::pane::PaneLaunchEnv, + agent_detection: crate::pane::AgentDetection, scrollback_limit_bytes: usize, host_terminal_theme: crate::terminal_theme::TerminalTheme, events: mpsc::Sender<AppEvent>, @@ -161,6 +162,7 @@ impl TerminalRuntime { cwd, command, launch_env, + agent_detection, scrollback_limit_bytes, host_terminal_theme, events, @@ -170,6 +172,8 @@ impl TerminalRuntime { .map(Self) } + // Wrapper mirrors pane runtime construction arguments, including detection policy. + #[allow(clippy::too_many_arguments)] pub fn spawn_argv_command( pane_id: PaneId, rows: u16, @@ -177,6 +181,7 @@ impl TerminalRuntime { cwd: std::path::PathBuf, argv: &[String], launch_env: &crate::pane::PaneLaunchEnv, + agent_detection: crate::pane::AgentDetection, scrollback_limit_bytes: usize, host_terminal_theme: crate::terminal_theme::TerminalTheme, events: mpsc::Sender<AppEvent>, @@ -190,6 +195,7 @@ impl TerminalRuntime { cwd, argv, launch_env, + agent_detection, scrollback_limit_bytes, host_terminal_theme, events, @@ -218,6 +224,11 @@ impl TerminalRuntime { self.0.agent_detection_reset_notify_for_test() } + #[cfg(test)] + pub(crate) fn agent_detection_enabled_for_test(&self) -> bool { + self.0.agent_detection_enabled_for_test() + } + pub fn set_full_lifecycle_authority_active(&self, active: bool) { self.0.set_full_lifecycle_authority_active(active); } @@ -389,6 +400,10 @@ impl TerminalRuntime { self.0.send_paste(text).await } + pub fn try_send_paste(&self, text: String) -> Result<(), mpsc::error::TrySendError<Bytes>> { + self.0.try_send_paste(text) + } + pub fn try_send_focus_event(&self, event: crate::ghostty::FocusEvent) -> bool { self.0.try_send_focus_event(event) } |
