mirror of
https://github.com/hanzoai/dev.git
synced 2026-10-25 03:23:33 +00:00
fix(tui/jump-back): fully reset UI state after fork to prevent stalls\n\nWhen jump-back forks a new conversation, create the new ChatWidget, run initial animations, clear transient Esc state, stop any commit animations, and force a clean repaint.\n\nAddresses a hang where the app appeared unresponsive after sending a message post jump‑back.\n\nCloses #15
This commit is contained in:
@@ -1034,8 +1034,15 @@ impl App<'_> {
|
||||
self.show_order_overlay,
|
||||
);
|
||||
new_widget.enable_perf(self.timing_enabled);
|
||||
// Ensure any initial animations or status are set up on the fresh widget
|
||||
new_widget.check_for_initial_animations();
|
||||
|
||||
self.app_state = AppState::Chat { widget: Box::new(new_widget) };
|
||||
// Reset any transient state from the previous widget/session
|
||||
self.commit_anim_running.store(false, Ordering::Release);
|
||||
self.last_esc_time = None;
|
||||
// Force a clean repaint of the new UI state
|
||||
self.clear_on_first_frame = true;
|
||||
|
||||
// Replay prefix to the UI
|
||||
let ev = codex_core::protocol::Event {
|
||||
|
||||
Reference in New Issue
Block a user