mirror of
https://github.com/l0ng-ai/tty7.git
synced 2026-09-22 00:02:23 +00:00
fix(cli): send rides the one-shot SendInput instead of a preempting attach
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014JPaaZVK7rfQPKyrymzsYv
This commit is contained in:
@@ -158,12 +158,9 @@ impl Backend for RealBackend {
|
||||
}
|
||||
|
||||
fn send_input(&mut self, pane: u64, bytes: Vec<u8>) -> Result<()> {
|
||||
let mut session = self
|
||||
.pane_client()?
|
||||
.attach(pane, SESSION_SIZE)
|
||||
.with_context(|| format!("attaching to pane %{pane}"))?;
|
||||
session.input(&bytes)?;
|
||||
session.detach()?;
|
||||
self.pane_client()?
|
||||
.send_input(pane, &bytes)
|
||||
.with_context(|| format!("sending input to pane %{pane}"))?;
|
||||
Ok(())
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user