mirror of
https://github.com/hanzoai/dev.git
synced 2026-10-25 03:32:32 +00:00
fix(tui/chatwidget): prioritize cancelable agents before auto summary
This commit is contained in:
@@ -17564,6 +17564,10 @@ use crate::chatwidget::message::UserMessage;
|
||||
return EscRoute::new(EscIntent::AutoPauseCountdown, true, false);
|
||||
}
|
||||
|
||||
if self.has_cancelable_agents() {
|
||||
return EscRoute::new(EscIntent::CancelAgents, true, false);
|
||||
}
|
||||
|
||||
if self.auto_state.awaiting_submission {
|
||||
return EscRoute::new(EscIntent::AutoStopDuringApproval, true, false);
|
||||
}
|
||||
@@ -17571,14 +17575,14 @@ use crate::chatwidget::message::UserMessage;
|
||||
return EscRoute::new(EscIntent::AutoStopActive, true, false);
|
||||
}
|
||||
|
||||
if self.auto_state.last_run_summary.is_some() {
|
||||
return EscRoute::new(EscIntent::AutoDismissSummary, true, false);
|
||||
}
|
||||
|
||||
if self.has_cancelable_agents() {
|
||||
return EscRoute::new(EscIntent::CancelAgents, true, false);
|
||||
}
|
||||
|
||||
if self.auto_state.last_run_summary.is_some() {
|
||||
return EscRoute::new(EscIntent::AutoDismissSummary, true, false);
|
||||
}
|
||||
|
||||
if self.auto_manual_entry_active() && !self.composer_is_empty() {
|
||||
return EscRoute::new(EscIntent::ClearComposer, true, false);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user