@code-yeongyu/senpi
Version:
Coding agent CLI with read, bash, edit, write tools and session management
10 lines • 556 B
JavaScript
import { compactUpdatesEnabled } from "../../core/engine-socket-flag.js";
/** Reserve the replacement identity before bootstrap publishes its first cut and returns the worker's credit. */
export async function reconcileWorkerReplacement(message, lane, callbacks) {
if (!message.snapshot)
return;
if (message.bootstrap && compactUpdatesEnabled())
await lane?.generations.bind(message.snapshot.state.sessionId);
await callbacks.reconcile(message.snapshot.liveSessionPaths);
}
//# sourceMappingURL=session-worker-replacement.js.map