Remove Turndiff and Apply patch from the render (#1868)
Make the tui more specific on what to render. Apply patch End and Turn diff needs special handling. Avoiding this issue: <img width="503" height="138" alt="image" src="https://github.com/user-attachments/assets/4c010ea8-701e-46d2-aa49-88b37fe0e5d9" />
This commit is contained in:
@@ -492,11 +492,13 @@ impl ChatWidget<'_> {
|
||||
EventMsg::ShutdownComplete => {
|
||||
self.app_event_tx.send(AppEvent::ExitRequest);
|
||||
}
|
||||
event => {
|
||||
let text = format!("{event:?}");
|
||||
self.add_to_history(HistoryCell::new_background_event(text.clone()));
|
||||
self.update_latest_log(text);
|
||||
EventMsg::BackgroundEvent(event) => {
|
||||
let message = event.message;
|
||||
self.add_to_history(HistoryCell::new_background_event(message.clone()));
|
||||
self.update_latest_log(message);
|
||||
}
|
||||
// TODO: Think of how are we going to render these events.
|
||||
EventMsg::PatchApplyEnd(_) | EventMsg::TurnDiff(_) => {}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user