@devries-cameron20 / t3code Mirror · read-only / commits / 4fb04fe7fa
Fork 0

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

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 23, 18:00 UTC

fix(desktop): use the crypto service for screenshot IDs (#16415)

Yash Singh committed Oct 6, 2026 at 04:33 UTC 4fb04fe7fae566cc91ab810888b3232f274a00cf
2 files changed +3 -2
apps/desktop/src/preview/Manager.ts
+2 -1
@@ -2974,7 +2974,8 @@ const makeNativeOperations = Effect.fn("PreviewManager.makeOperations")(function
2974 wc,
2975 ),
2976 ]);
2977 - const id = `browser-screenshot-${artifactSiteSlug(wc.getURL())}-${millis.toString(36)}-${NodeCrypto.randomUUID().slice(0, 8)}`;
2977 + const uuid = yield* crypto.randomUUIDv4.pipe(Effect.orDie);
2978 + const id = `browser-screenshot-${artifactSiteSlug(wc.getURL())}-${millis.toString(36)}-${uuid.slice(0, 8)}`;
2979 const artifactPath = path.join(resolvedArtifactDirectory, `${id}.png`);
2980 const data = image.toPNG();
2981 yield* fileSystem.makeDirectory(resolvedArtifactDirectory, { recursive: true }).pipe(
apps/server/src/sourceControl/SourceControlRepositoryService.test.ts
+1 -1
@@ -331,7 +331,7 @@ it.effect.each(["--bare", "source.git"])(
331 });
332 assert.strictEqual(result.cwd, destinationPath);
333 assert.isTrue(yield* fs.exists(path.join(destinationPath, ".git")));
334 - }).pipe(Effect.provide(makeLayer({ git: { execute: git.execute } })));
334 + }).pipe(Effect.provide(layer({ git: { execute: git.execute } })));
335 }).pipe(
336 Effect.provide(
337 GitVcsDriver.layer.pipe(