Buffer incoming terminal.write() only after onSelectionChange reports a non-empty selection — NOT during mousedown. This lets xterm.js render the selection highlight normally, then prevents incoming data from clearing it. The buffer flushes when the user clears the selection (click/keypress) or after a 5s safety timeout. Previous attempts broke because they buffered during mousedown which prevented xterm.js from rendering the highlight in the first place. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| agent-orchestrator | ||
| cli | ||
| core | ||
| integration-tests | ||
| plugins | ||
| web | ||