Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1542,7 +1542,12 @@ fn cmd_uninstall(skip_confirm: bool) -> Result<(), Box<dyn std::error::Error>> {
"OpenClaw workaround",
"Temporarily setting `gateway.reload.mode` to `off` during uninstall cleanup, then restoring `hybrid`.",
);
match openclaw_cli::cleanup_openclaw_for_uninstall(&mut openclaw_runner)? {
let approval_mode = if skip_confirm {
openclaw_cli::OpenclawApprovalMode::AutoApprove
} else {
openclaw_cli::OpenclawApprovalMode::PromptUser
};
match openclaw_cli::cleanup_openclaw_for_uninstall(&mut openclaw_runner, approval_mode)? {
openclaw_cli::UninstallCleanupOutcome::BlockedByDefaultModel => {
tui::print_error(
"ClawShell model is currently set as the default model in OpenClaw.",
Expand Down
Loading