Files
cleveragents-core/features
hamza.khyari 6bda792d2b fix(tui): subclass Input to override _watch_value and eliminate layout=True per keystroke
Input._watch_value sets self.virtual_size (Reactive layout=True) on every
keystroke, keeping Textual's WriterThread write queue permanently non-empty.
The queue never reaches qsize()==0 so flush() is never called and typed
characters are invisible until Enter drains the queue.

Two fixes applied:

1. _PromptTextInput subclasses textual.widgets.Input and overrides
   virtual_size with Reactive(layout=False). Setting virtual_size in
   _watch_value no longer triggers refresh(layout=True). Zero type:ignore
   suppressions — uses proper Textual reactive types.

2. CSS #prompt and #prompt > Input changed from height:auto to fixed
   heights (3 and 1). This prevents the auto_dimensions guard in
   _watch_value from adding a second refresh(layout=True) per keystroke.

3 BDD regression scenarios added covering: virtual_size layout=False,
_PromptInputBase usage in _TextualPromptInput, and fixed CSS height.

ISSUES CLOSED: #11249
2026-05-27 23:17:15 -04:00
..