feat: remove ModePicker overlay and related commands; update mode handling and documentation

This commit is contained in:
asepharyana
2026-07-12 02:14:40 +07:00
parent 662e269f2c
commit 32155f8ea8
9 changed files with 3 additions and 110 deletions
-8
View File
@@ -30,7 +30,6 @@ pub enum Action {
OpenOverlay(Overlay),
CloseOverlay,
ToggleYoloArm,
CycleAgentMode,
SystemNote {
kind: String,
message: String,
@@ -242,13 +241,6 @@ pub fn apply_action(state: &mut AppStateRest, action: Action) {
state.misc.yolo_armed = !state.misc.yolo_armed;
state.dirty = true;
}
Action::CycleAgentMode => {
let next = state.mode.cycle();
state.set_mode(next);
let toast = Toast::new(ToastKind::Info, format!("Mode: {}", state.mode.name()));
state.push_toast(toast);
state.dirty = true;
}
Action::SystemNote { kind: _kind, message } => {
let toast = crate::app::state::types::Toast::new(
crate::app::state::types::ToastKind::Info,