The best way to control Claude Code, Codex and more from any computer or phone
| 1 | /** Keep edit keys separate to preserve original drafts. */ |
| 2 | const QUEUED_EDIT_DRAFT_MARKER = "~queued-edit~"; |
| 3 | |
| 4 | export function queuedEditDraftKey(threadKey: string, runId: string): string { |
| 5 | return `${threadKey}${QUEUED_EDIT_DRAFT_MARKER}${runId}`; |
| 6 | } |
| 7 | |
| 8 | export function isQueuedEditDraftKey(draftKey: string): boolean { |
| 9 | return draftKey.includes(QUEUED_EDIT_DRAFT_MARKER); |
| 10 | } |