codetether-agent 4.5.7

A2A-native AI coding agent for the CodeTether ecosystem
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//! Cancel and retry key handlers for watchdog notifications.

use crate::tui::app::state::AppState;

/// Dismiss the watchdog notification and stop processing.
pub fn handle_watchdog_cancel(state: &mut AppState) {
    state.processing = false;
    state.streaming_text.clear();
    state.clear_request_timing();
    state.watchdog_notification = None;
    state.status = "Request cancelled.".to_string();
}

/// Dismiss the notification without stopping (restart already handled by event loop).
pub fn handle_watchdog_dismiss(state: &mut AppState) {
    state.watchdog_notification = None;
}