跳到主要内容

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

提交记录
修改internal/workbench/instance_name_test.go+9 −1看文件
@@ -59,7 +59,15 @@ func TestControllerNamesMatchCLIForIndependentProfiles(t *testing.T) {
5959 }
6060 }
6161 an, bn := cliName(a), cliName(b)
62删除: if an == bn || len(bn) >= len(an) || len(an) >= 76 {
62新增: wantA := vmname.HomeLimit(filepath.Join(a.profile, "state", "lima"), false).Name(workspace)
63新增: wantB := vmname.HomeLimit(filepath.Join(b.profile, "state", "lima"), false).Name(workspace)
64新增: if an != wantA || bn != wantB {
65新增: t.Fatalf("CLI names differ from their profile budgets: %q != %q, %q != %q", an, wantA, bn, wantB)
66新增: }
67新增: // /tmp keeps the POSIX fixture short enough to exercise different socket
68新增: // budgets. Deep Windows temp paths can legitimately reach the same minimum
69新增: // name; independent profile directories still isolate their state.
70新增: if filepath.Separator == '/' && (an == bn || len(bn) >= len(an) || len(an) >= 76) {
6371 t.Fatalf("test requires different truncations: %q, %q", an, bn)
6472 }
6573 var wg sync.WaitGroup