Remove MetaBot coupling from uninstall and workspace init.

Keep silent cleanup of legacy metabot stubs; drop METABOT_HOME symlink.
This commit is contained in:
Zhengshou Lai
2026-08-11 17:23:23 +08:00
parent 18154020a3
commit 3d40e27a93
3 changed files with 39 additions and 17 deletions
+2 -1
View File
@@ -53,6 +53,7 @@ class TestUninstall:
assert not (local_bin / "completions").exists() # empty dir cleaned
assert not (fake_home / "Desktop" / "Xiaohe Agent.app").exists()
assert (fake_home / ".xiaohe" / "agent" / "config.json").is_file()
# Legacy leftover dir kept unless --all
assert (fake_home / ".metabot" / "bots.json").is_file()
assert (fake_home / ".mytoolkit" / "config.json").is_file()
assert (fake_home / "workspace").is_dir()
@@ -64,7 +65,7 @@ class TestUninstall:
)
assert result.exit_code == 0
assert not (fake_home / ".xiaohe").exists()
assert not (fake_home / ".metabot").exists()
assert not (fake_home / ".metabot").exists() # legacy leftover
assert not (fake_home / ".mytoolkit").exists()
assert (fake_home / "workspace").is_dir() # workspace never touched