Skip to content

Commit ceadf7a

Browse files
fix: rust
1 parent 15ac1d1 commit ceadf7a

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

packages/multiplexer/src/api/server.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,6 @@ pub async fn run_daemon_with_options(enable_proxy: bool) -> anyhow::Result<()> {
9494
let hook_socket_path = paths::hooks_socket_path();
9595
let (hook_listener, mut hook_rx) = crate::hooks::HookListener::new(hook_socket_path);
9696

97-
let hook_manager = Arc::clone(&manager);
9897
tokio::spawn(async move {
9998
if let Err(e) = hook_listener.start().await {
10099
tracing::error!("Hook listener failed: {}", e);

packages/multiplexer/src/tui/events.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -614,8 +614,9 @@ async fn handle_attached_key(app: &mut App, key: KeyEvent) -> anyhow::Result<()>
614614
DetachState::Pending { since, key_byte: pending_byte } => {
615615
if since.elapsed() < DETACH_TIMEOUT {
616616
// Double-tap detected - send the literal key that was pressed
617+
let byte_to_send = *pending_byte; // Copy before reassigning
617618
app.detach_state = DetachState::Idle;
618-
app.send_to_pty(vec![*pending_byte]).await?;
619+
app.send_to_pty(vec![byte_to_send]).await?;
619620
} else {
620621
// Timeout expired - this should have been handled by main loop
621622
// but if we get here, treat as detach

packages/multiplexer/src/tui/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ use std::time::Duration;
1212
use crossterm::{
1313
event::{
1414
DisableBracketedPaste, DisableMouseCapture, EnableBracketedPaste, EnableMouseCapture,
15-
Event, KeyCode, KeyboardEnhancementFlags, MouseEventKind, PopKeyboardEnhancementFlags,
15+
Event, KeyCode, KeyboardEnhancementFlags, PopKeyboardEnhancementFlags,
1616
PushKeyboardEnhancementFlags,
1717
},
1818
execute,

0 commit comments

Comments
 (0)