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

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);