[PR #3880] [FIX]: Refocus prompt after session delete #10789

Closed
opened 2026-02-16 18:15:32 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/3880

State: closed
Merged: No


closes #3825

This PR adds the missing dialog.clear() call to the onTrigger handler for the delete keybind.
The dialog component's built-in clear() function already handles restoring focus to the previously active element (the prompt), so this one-line change correctly closes the dialog and fixes the focus regression.

https://github.com/user-attachments/assets/4ba9ec57-0df8-4ee0-8d9f-023da772b976

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/3880 **State:** closed **Merged:** No --- closes #3825 This PR adds the missing dialog.clear() call to the onTrigger handler for the delete keybind. The dialog component's built-in clear() function already handles restoring focus to the previously active element (the prompt), so this one-line change correctly closes the dialog and fixes the focus regression. https://github.com/user-attachments/assets/4ba9ec57-0df8-4ee0-8d9f-023da772b976
yindo added the pull-request label 2026-02-16 18:15:32 -05:00
yindo closed this issue 2026-02-16 18:15:32 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#10789