feat: update overlay handling in apply_action and remove mouse capture from terminal execution

This commit is contained in:
asepharyana
2026-07-13 14:39:39 +07:00
parent 1d50b94eec
commit 2e351ccf69
2 changed files with 12 additions and 6 deletions
+8
View File
@@ -389,6 +389,11 @@ pub fn apply_action(state: &mut AppStateRest, action: Action) {
state.workflow_engine.agents.clear();
state.workflow_engine.findings.clear();
}
if message.to_lowercase().contains("complete") {
if state.misc.overlay == Overlay::Workflow {
state.misc.overlay = Overlay::None;
}
}
state.push_toast(Toast {
kind: ToastKind::Info,
message: message.clone(),
@@ -526,6 +531,9 @@ pub fn apply_action(state: &mut AppStateRest, action: Action) {
}
if turn_finished {
maybe_trigger_review(state);
if state.misc.overlay == Overlay::Workflow {
state.misc.overlay = Overlay::None;
}
}
if turn_finished || state.dirty {
state.dirty = true;