mirror of
https://github.com/stablyai/orca.git
synced 2026-11-02 18:17:36 +00:00
* feat(wsl-mover): a moved pane reopens in its last folder on the WSL host (D1b-6b) * fix(wsl-mover): consume a restore hint only when its pane spawns, scope it to its worktree, retry failed installs (D1b-6b)
12 lines
299 B
TypeScript
12 lines
299 B
TypeScript
/** An idempotent callback: the spawn-commit report and the stable-pane claim release run once. */
|
|
export function createIdempotentCallback(callback?: () => void): () => void {
|
|
let reported = false
|
|
return () => {
|
|
if (reported) {
|
|
return
|
|
}
|
|
reported = true
|
|
callback?.()
|
|
}
|
|
}
|