跳到主要内容

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

提交记录
修改internal/mobilelink/link_test.go+7 −0看文件
@@ -405,6 +405,13 @@ func TestSavedNativeClientUsesNewRoomsAndChecksHostIdentity(t *testing.T) {
405405 for _, expectedPin := range []string{other.Pin, f.identity.Pin, f.identity.Pin} {
406406 ctx, cancel := context.WithTimeout(context.Background(), 5*time.Second)
407407 inv, err := mobilelink.CreateDiscoverableRoom(ctx, f.base, strings.Repeat("t", 64), lookup)
408新增: // The host connection can finish before the relay retires its room.
409新增: // Saved hosts back off on this transient conflict too; the occupied-room
410新增: // assertion below must still reject displacement without retrying.
411新增: for previous != "" && err != nil && mobilelink.Retryable(err) && ctx.Err() == nil {
412新增: time.Sleep(10 * time.Millisecond)
413新增: inv, err = mobilelink.CreateDiscoverableRoom(ctx, f.base, strings.Repeat("t", 64), lookup)
414新增: }
408415 if err != nil {
409416 cancel()
410417 t.Fatal(err)