@devries-cameron20 / t3code Mirror · read-only
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 21, 04:45 UTC

main
ts 10 lines 384 Bytes
Raw
1 import type { ScopedThreadRef } from "@t3tools/contracts";
2
3 /** Desktop ids must distinguish environments and server restarts; server tab ids are process-local. */
4 export function previewRuntimeTabId(
5 threadRef: ScopedThreadRef,
6 serverEpoch: string | null,
7 tabId: string,
8 ): string {
9 return JSON.stringify([threadRef.environmentId, threadRef.threadId, serverEpoch, tabId]);
10 }