notedeck

One damus client to rule them all
git clone git://jb55.com/notedeck
Log | Files | Refs | README | LICENSE

commit 0feda7967188d69547272464b7057f54e5f2fb6a
parent 7335b14a70deaaf616d3adf1bee71a9ea9407fc7
Author: William Casarin <jb55@jb55.com>
Date:   Tue, 27 Jan 2026 07:07:28 -0800

dave: restore input focus after permission response

After accepting or denying a permission via keyboard (1/2), restore
focus to the text input so the user can continue typing without
needing to click.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

Diffstat:
Mcrates/notedeck_dave/src/lib.rs | 8++++++++
1 file changed, 8 insertions(+), 0 deletions(-)

diff --git a/crates/notedeck_dave/src/lib.rs b/crates/notedeck_dave/src/lib.rs @@ -813,6 +813,10 @@ impl notedeck::App for Dave { KeyAction::AcceptPermission => { if let Some(request_id) = self.first_pending_permission() { self.handle_permission_response(request_id, PermissionResponse::Allow); + // Restore input focus after permission response + if let Some(session) = self.session_manager.get_active_mut() { + session.focus_requested = true; + } } } KeyAction::DenyPermission => { @@ -823,6 +827,10 @@ impl notedeck::App for Dave { reason: "User denied via keyboard".into(), }, ); + // Restore input focus after permission response + if let Some(session) = self.session_manager.get_active_mut() { + session.focus_requested = true; + } } } KeyAction::SwitchToAgent(index) => {