[Bug]: Restore focus to the same control when switching back to a thread#29041

opened9d agobyBboblangley

Before submitting

  • I searched existing issues and did not find a duplicate.
  • I included enough detail to reproduce or investigate the problem.

Area

apps/web

Steps to reproduce

  1. Open a thread with its terminal visible.
  2. Click the composer so it has focus.
  3. Switch to another thread.
  4. Switch back to the first thread.

Expected behavior

Focus returns to the control that had focus when I left the thread. In this example, the composer should still have focus. The terminal should receive focus only if it had focus when I switched away.

Actual behavior

The terminal has focus when I return to the thread.

Impact

Minor bug or occasional failure

Version or commit

0.1.6

Environment

Linux desktop

Logs or stack traces

shell
1

Screenshots, recordings, or supporting files

Workaround

No response