feat: enhance prompts and validation for tool-call safety; enforce error handling and technical debt awareness

This commit is contained in:
asepharyana
2026-07-12 12:32:32 +07:00
parent ce36e936a6
commit 80a8223ee3
6 changed files with 303 additions and 14 deletions
+1 -1
View File
@@ -307,7 +307,7 @@ pub fn apply_action(state: &mut AppStateRest, action: Action) {
// every ~1s while disconnected, every ~30s while connected, so the
// status bar reflects real API availability without user input.
let check_interval = if state.misc.api_connected { 600 } else { 20 };
if state.misc.tick_count % check_interval == 0 {
if state.misc.tick_count.is_multiple_of(check_interval) {
spawn_api_connectivity_check(state);
}
crate::app::review::maybe_run_staleness_sweep(state);