@devries-cameron20 / t3code-1 / commits / 0f74ff8e3a
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

fix(web): copy to machine clones the fork, not its upstream (#22492)

AKolenda committed Oct 21, 2026 at 16:16 UTC 0f74ff8e3a4189331fa762ff5d5da0626ecc5a61
4 files changed +7 -2
apps/server/src/project/RepositoryIdentityResolver.test.ts
+1
@@ -261,6 +261,7 @@ it.layer(NodeServices.layer)("RepositoryIdentityResolverLive", (it) => {
261 expect(identity?.displayName).toBe("T3Tools/t3code");
262 expect(identity?.origin).toEqual({
263 canonicalKey: "github.com/julius/t3code-fork",
264 + remoteUrl: "git@github.com:julius/t3code-fork.git",
265 displayName: "julius/t3code-fork",
266 });
267 }).pipe(Effect.provide(RepositoryIdentityResolver.layer)),
apps/server/src/project/RepositoryIdentityResolver.ts
+1 -1
@@ -105,7 +105,7 @@ function buildRepositoryOrigin(
105 const originKey = normalizeGitRemoteUrl(originUrl);
106 if (originKey === canonicalKey) return undefined;
107 const displayName = repositoryPathOf(originKey, originUrl);
108 - return { canonicalKey: originKey, ...(displayName ? { displayName } : {}) };
108 + return { canonicalKey: originKey, remoteUrl: originUrl, ...(displayName ? { displayName } : {}) };
109 }
110
111 function buildRepositoryIdentity(input: {
apps/web/src/components/AddProjectToMachineDialog.tsx
+4 -1
@@ -82,7 +82,10 @@ function AddProjectToMachineDialog({ request }: { request: AddProjectToMachineRe
82 const [targetId, setTargetId] = useState(request.targetEnvironmentId);
83 const target = targets.find((t) => t.environmentId === targetId) ?? targets[0] ?? null;
84 const source = environments.find((env) => env.environmentId === request.projectRef.environmentId);
85 - const sourceUrl = project?.repositoryIdentity?.locator.remoteUrl ?? "";
85 + const sourceUrl =
86 + project?.repositoryIdentity?.origin?.remoteUrl ??
87 + project?.repositoryIdentity?.locator.remoteUrl ??
88 + "";
89 const [protocol, setProtocol] = useState<CloneProtocol | null>(() => cloneUrlProtocol(sourceUrl));
90 const sshUrl = cloneUrlForProtocol(sourceUrl, "ssh");
91 const httpsUrl = cloneUrlForProtocol(sourceUrl, "https");
packages/contracts/src/environment.ts
+1
@@ -174,6 +174,7 @@ export type RepositoryIdentityLocator = typeof RepositoryIdentityLocator.Type;
174
175 export const RepositoryOrigin = Schema.Struct({
176 canonicalKey: TrimmedNonEmptyString,
177 + remoteUrl: Schema.optionalKey(TrimmedNonEmptyString),
178 displayName: Schema.optionalKey(TrimmedNonEmptyString),
179 });
180 export type RepositoryOrigin = typeof RepositoryOrigin.Type;