feat: remove ModePicker overlay and related commands; update mode handling and documentation
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -75,14 +75,6 @@ const COMMANDS: &[&str] = &[
|
||||
"/lesson import",
|
||||
"/lesson accept",
|
||||
"/lesson reject",
|
||||
"/mode chat",
|
||||
"/mode bash",
|
||||
"/mode help",
|
||||
"/mode settings",
|
||||
"/mode effort",
|
||||
"/mode mcp",
|
||||
"/mode rewind",
|
||||
"/mode editor",
|
||||
"/login",
|
||||
"/login zen",
|
||||
"/login openai",
|
||||
|
||||
@@ -68,7 +68,7 @@ impl AppStateRest {
|
||||
.map(|n| n.to_string_lossy().to_string())
|
||||
.unwrap_or_default();
|
||||
AppStateRest {
|
||||
mode: AgentMode::Normal,
|
||||
mode: AgentMode::Auto,
|
||||
settings,
|
||||
app_config,
|
||||
workspace_roots,
|
||||
|
||||
@@ -87,7 +87,6 @@ pub enum Overlay {
|
||||
Loading,
|
||||
ModelSelector,
|
||||
ClearConfirm,
|
||||
ModePicker,
|
||||
LoginPicker,
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user