Files
webterm/webterm
GitHub Copilot 5089aedd6f fix: bell indicator stuck after returning to terminal tab
Two issues prevented the bell emoji from clearing reliably:

1. Race on tab return: clearBellState() runs on visibilitychange/focus,
   but the WebSocket has buffered output from while the tab was hidden.
   The terminal processes it immediately, onBell fires, and the bell is
   right back. Fixed with a 1-second suppression window after clearing —
   bells from buffered output are ignored.

2. Bell stays when clicking without typing: the bell only cleared on
   onData (keyboard input). If you clicked the terminal or just switched
   back without typing, the emoji persisted. Added a mousedown listener
   on the terminal element to clear it on any mouse interaction.
2026-03-01 20:26:05 +00:00
..
2026-02-18 15:45:22 +00:00