[PR #3882] [FIX]: Refocus prompt after session delete #10791

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

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

State: closed
Merged: Yes


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 fixes the focus regression.

https://github.com/user-attachments/assets/e767582e-a7c2-4588-b4db-d471cbf38231

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/3882 **State:** closed **Merged:** Yes --- 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 fixes the focus regression. https://github.com/user-attachments/assets/e767582e-a7c2-4588-b4db-d471cbf38231
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#10791