- CjkInput remembers which session the field's text belongs to (set by
restoreDraft) and clear() stashes a held draft under it, so the paths
that drop the active session before the next cleanup (goHome,
_replaceTileGrid, _onTileAdoptedElsewhere) keep the answer.
discardDraft() drops the owner of a removed session.
- Tile focus no longer stashes again for a tile closed from this tab.
- With a draft in the field, Ctrl shortcuts (undo, select all, copy) are
the field's; they reach the CLI only while it is empty, like Backspace
and the arrows.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>