Skip to content

[Bug]: uninstall documentation nukes cwd #90806

@brandondube

Description

@brandondube

Bug type

Behavior bug (incorrect output/state without crash)

Beta release blocker

Yes

Summary

The stanza

openclaw uninstall --all --yes --non-interactive

deletes all contents in the current working directory. This is a severe bug that results in dataloss. It's not like the default directory for a new shell is $HOME. How on earth is it even possible this is in the code 😡

Steps to reproduce

openclaw uninstall --all --yes --non-interactive

Expected behavior

Do not delete cwd???????????????

Actual behavior

rm -rf was run on cwd?????

OpenClaw version

downloaded yesterday.

Operating system

macOS

Install method

npm global

Model

not relevant

Provider / routing chain

not relevant

Additional provider/model setup details

No response

Logs, screenshots, and evidence

Impact and severity

Severity: Extreme, data risk deletion

Additional information

No response

Metadata

Metadata

Assignees

Labels

P0Emergency: data loss, security bypass, crash loop, or unusable core runtime.bugSomething isn't workingclawsweeper:fix-shape-clearClawSweeper found a clear likely implementation shape for this issue.clawsweeper:queueable-fixClawSweeper marked this issue as an existing queue_fix_pr work candidate.clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.impact:data-lossCan lose, corrupt, or silently drop user/session/config data.issue-rating: 🦞 diamond lobsterVery strong issue quality with high-confidence source-level or clear reproduction.

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions