跳到主要内容

Claude Cage · 面向 Claude 的隔离开发环境,支持桌面工作台、多账号、远程部署与移动端连接。上游 Lee-xeo/Claude-Cage 完整源码镜像,非灵栈原创;主许可 MIT,第三方组件遵循各自许可。来源:https://github.com/Lee-xeo/Claude-Cage 。手动同步,不附带 Release 安装包。

浏览文件

0015-stable-cage-storage-anchor.patch

16 行 · 684 B历史下载
1diff --git a/pkg/limatype/dirnames/dirnames.go b/pkg/limatype/dirnames/dirnames.go
2index 136c766..71ec9c2 100644
3--- a/pkg/limatype/dirnames/dirnames.go
4+++ b/pkg/limatype/dirnames/dirnames.go
5@@ -31,6 +31,11 @@ func LimaDir() (string, error) {
6 }
7 dir = filepath.Join(homeDir, DotLima)
8 }
9+ // Cage keeps a stable logical path for QEMU backing files, SSH and sockets
10+ // when the profile's private VM storage is moved to another volume.
11+ if stable := os.Getenv("CAGE_LOGICAL_LIMA_HOME"); stable != "" && filepath.Clean(dir) == filepath.Clean(stable) {
12+ return filepath.Clean(dir), nil
13+ }
14 if _, err := os.Stat(dir); errors.Is(err, os.ErrNotExist) {
15 return dir, nil
16 }