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
| 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 | } |