Replace gui_bridge_post_uasync_fn (async queue lost on shutdown) with direct chat_core_save_ui_state (sync SQLite write). SQLite WAL handles concurrent access. Add DEBUG_DEBUG traces in closeEvent, ~MainWindow, aboutToQuit.
Replace gui_bridge_post_uasync_fn (async queue lost on shutdown) with direct chat_core_save_ui_state (sync SQLite write). SQLite WAL handles concurrent access. Add DEBUG_DEBUG traces in closeEvent, ~MainWindow, aboutToQuit.