Changed
- Massive TUI Controller Extraction: Extracted the main UI event loop and state machine out of
bin/free-coding-models.jsinto a dedicatedsrc/app.jscontroller. This cuts the main executable size drastically and makes the TUI architecture more modular and testable. - Robust Error Boundaries: Wrapped all critical asynchronous operations, keypress handlers, UI render timers, and polling cycles with comprehensive
try/catchblocks. Instead of the TUI crashing and destroying the terminal scrollback on unexpected errors, it will now gracefully exit the alternate screen buffer, print a formatted stack trace, and point users to the GitHub issue tracker and feedback form. - Global Crash Resiliency: Added
uncaughtExceptionandunhandledRejectionlisteners at the entry point to guarantee terminal restoration even if a library fails catastrophically.