opentui: bug: Deleting current session doesn't refocus textarea #2531

Closed
opened 2026-02-16 17:36:07 -05:00 by yindo · 0 comments
Owner

Originally created by @veracioux on GitHub (Nov 3, 2025).

Description

This is a regression introduced in https://github.com/sst/opencode/commit/f42e1c63757e937a1b7839eaab3e545ed53517b0#r169466687 (link points to the commit + a comment by me)

Note to self: Add a regression test for this as part of https://github.com/sst/opencode/pull/3789.

OpenCode version

1.0.15

Steps to reproduce

  1. Open a session
  2. Open session list dialog
  3. Delete the current session using ctrl+d
  4. Prompt textarea isn't refocused - you have to click it in order to start typing prompts again

Screenshot and/or share link

https://github.com/user-attachments/assets/bfd143c2-43ec-405d-b3c8-c5b951eae6e7

Operating System

No response

Terminal

No response

Originally created by @veracioux on GitHub (Nov 3, 2025). ### Description This is a regression introduced in https://github.com/sst/opencode/commit/f42e1c63757e937a1b7839eaab3e545ed53517b0#r169466687 (link points to the commit + a comment by me) **Note to self:** Add a regression test for this as part of https://github.com/sst/opencode/pull/3789. ### OpenCode version 1.0.15 ### Steps to reproduce 1. Open a session 2. Open session list dialog 3. Delete the current session using `ctrl+d` 4. Prompt textarea isn't refocused - you have to click it in order to start typing prompts again ### Screenshot and/or share link https://github.com/user-attachments/assets/bfd143c2-43ec-405d-b3c8-c5b951eae6e7 ### Operating System _No response_ ### Terminal _No response_
yindo added the opentuibug labels 2026-02-16 17:36:07 -05:00
yindo closed this issue 2026-02-16 17:36:07 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#2531