跳到主要内容

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

提交记录
修改internal/cage/storage_runtime_test.go+4 −3看文件
@@ -65,9 +65,10 @@ func TestStorageRuntimeUsesVerifiedCopyAndRetainsOriginal(t *testing.T) {
6565 t.Fatal("successful move rolled back")
6666 }
6767 assertStorageFile(t, filepath.Join(move.Backup, file), payload)
68删除: actual, err := filepath.EvalSymlinks(storageAnchor(profile))
69删除: if err != nil || actual != move.Destination {
70删除: t.Fatalf("runtime committed before directory: %s %v", actual, err)
68新增: actual, err := os.Stat(storageAnchor(profile))
69新增: destination, targetErr := os.Stat(move.Destination)
70新增: if err != nil || targetErr != nil || !os.SameFile(actual, destination) {
71新增: t.Fatalf("runtime committed before directory: anchor %v, destination %v", err, targetErr)
7172 }
7273 return nil
7374 }