Skip to content

armgit / cindy

Public Imported from GitHub
0

Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。

514 B
Raw Blame
import { persistCancelledCreationDraft } from './mobileDurableOutbox';
import { dismissRecoveredPrecreatedSession } from './newSessionCreation';
import type { PendingPrecreatedWorktree } from './precreatedWorktreeRecovery';

/** Keep the recovery ledger until its matching draft is durably safe to resubmit. */
export async function completePrecreatedWorktreeRecovery(record: PendingPrecreatedWorktree): Promise<void> {
  await persistCancelledCreationDraft(record);
  dismissRecoveredPrecreatedSession(record);
}