docs(schedule): correct durable change callback timing

This commit is contained in:
pku-xht
2026-08-07 20:41:43 +08:00
committed by Tianyi Cui
parent 9d73b527de
commit e21f331078

View File

@@ -215,7 +215,7 @@ function validateCreateArgs(args: { prompt: string; after_seconds: number }): Sc
* @param rootCtx - Global service context owning sessions and durability. * @param rootCtx - Global service context owning sessions and durability.
* @param toolCtx - Exact agent-scoped context receiving the definitions. * @param toolCtx - Exact agent-scoped context receiving the definitions.
* @param agent - Exact live owner whose session the tools mutate. * @param agent - Exact live owner whose session the tools mutate.
* @param onDurableChange - Called after a create or actual delete barrier succeeds. * @param onDurableChange - Called after every successful preflight and again after a create or actual delete barrier succeeds.
* @returns Idempotent aggregate disposer for the three registrations. * @returns Idempotent aggregate disposer for the three registrations.
*/ */
export function registerScheduleTools( export function registerScheduleTools(