@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, 03:37 UTC

main
ts 6 lines 397 Bytes
Raw
1 // An agent may create a thread with neither a title nor a prompt; its name is then a placeholder
2 // that the first message should replace, unlike a title the caller chose.
3 export const placeholderThreadTitle = (parentTitle: string, index: number): string =>
4 `${parentTitle} thread ${index + 1}`;
5
6 export const isPlaceholderThreadTitle = (title: string): boolean => / thread \d+$/u.test(title);