diff options
| author | tv <tv@krebsco.de> | 2026-11-22 11:24:07 +0000 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-11-22 19:37:36 +0000 |
| commit | 51534807b2b4174c098d9cb41a40a7b7fcfbb3d9 (patch) | |
| tree | 3dcc51edd5f12b3ac962abfa0add701e021e1d2b /configs | |
| parent | 6a39a63b84811abdcdcbeaebdd734f958352c4f5 (diff) | |
pkgs/claude-remote: rename OLD NEW, all or nothing, and back by NEW OLD
A remote, renamed: its directory, its Claude Code project (and the link
to its claude.ai session in it), its trust in ~/.claude.json, the
worktrees in it (repaired), its branches (OLD/* to NEW/*), and a
dynamic one's mark; stopped first, if it runs, and started after.
Each step is a rename, so rename NEW OLD takes it all back.
Everything gets checked first, and nothing changes unless all's well:
OLD there, and not static; nothing of NEW's there (directory, project,
unit, mark, branches; but an entry in ~/.claude.json alone, which a
remote writing back what it read before can bring back, gets
replaced); not run from OLD itself; nothing but OLD's own unit using
it (and, once stopped, nothing at all); no other rename running. Then
all or nothing: before each step, how to take it back, which looks at
what's there (so a step half done gets taken back, too), and if one
fails, those get done, last first. Only if that fails, too, a copy of
~/.claude.json as it was stays, which list shows until it's removed.
The process, in the header.
Diffstat (limited to 'configs')
0 files changed, 0 insertions, 0 deletions
