From a0deb90741226e80d44d9f1951a868fc2d4e33e4 Mon Sep 17 00:00:00 2001 From: jochen Date: Wed, 7 Oct 2026 19:44:07 +0200 Subject: [PATCH] claude-code: undo a home removal through the mesh A removal kept its copy but nothing could put it back without a shell on the machine. claude_code_home_restore puts a kept copy back when nothing is at its path and the copy matches the digests recorded at removal; claude_code_home_removed lists what is kept. --- modules/claude-code/README.md | 6 +- .../cmd/claude-code/config_tools.go | 7 + modules/claude-code/cmd/claude-code/home.go | 201 ++++++++++++++++-- .../claude-code/cmd/claude-code/home_test.go | 109 ++++++++++ modules/claude-code/module.json | 4 +- 5 files changed, 304 insertions(+), 23 deletions(-) diff --git a/modules/claude-code/README.md b/modules/claude-code/README.md index 64df747..502a4be 100644 --- a/modules/claude-code/README.md +++ b/modules/claude-code/README.md @@ -78,7 +78,11 @@ operator account's own `~/.claude` on those nodes): removing it is the person's act, and this tool is that act made explicit. `why` is required; what the mesh placed is refused (its `_unregister` owns it), and so is a symbolic link. A copy is kept first in the module's state, `removed-from-home//