Files
openclaw/src/tasks/runtime-internal.ts
Darren2030 b8f365a82b fix(tasks): skip discarded registry sort (#102202)
Preserve the cloned task snapshot and deterministic activity ordering while avoiding the createdAt sort that tasks.list immediately replaces.

Closes #101716

Co-authored-by: Peter Steinberger <steipete@gmail.com>
2026-07-10 03:12:35 +01:00

35 lines
1.0 KiB
TypeScript

// Internal task registry facade used by runtime modules without exposing public SDK surface.
export {
cancelTaskById,
createTaskRecord,
deleteTaskRecordById,
ensureTaskRegistryReady,
resetTaskRegistryControlRuntimeForTests,
findLatestTaskForFlowId,
finalizeTaskRunByRunId,
getTaskById,
hasActiveTaskForChildSessionKey,
listFreshTasksForOwnerKey,
listTaskRecords,
listTaskRecordsUnsorted,
listTasksForFlowId,
listTasksForOwnerKey,
linkTaskToFlowById,
markTaskLostById,
markTaskRunningByRunId,
markTaskTerminalById,
maybeDeliverTaskTerminalUpdate,
recordTaskProgressByRunId,
reloadTaskRegistryFromStore,
resetTaskRegistryDeliveryRuntimeForTests,
resolveTaskForLookupToken,
resetTaskRegistryForTests,
isParentFlowLinkError,
setTaskRegistryControlRuntimeForTests,
setTaskRegistryDeliveryRuntimeForTests,
setTaskCleanupAfterById,
setTaskRunDeliveryStatusByRunId,
updateTaskNotifyPolicyById,
} from "./task-registry.js";
export type { TaskRecord } from "./task-registry.types.js";