MCPcopy Create free account
hub / github.com/Tron521/codex-console-temp / normalizeTaskState

Function normalizeTaskState

static/js/accounts.js:42–46  ·  view source on GitHub ↗
(taskRef = {})

Source from the content-addressed store, hash-verified

40}
41
42function normalizeTaskState(taskRef = {}) {
43 const status = String(taskRef?.status || '').trim().toLowerCase();
44 const paused = Boolean(taskRef?.paused) || status === 'paused';
45 return { ...taskRef, status, paused };
46}
47
48function trackBatchTask(key, taskRef = null) {
49 if (!Object.prototype.hasOwnProperty.call(activeBatchTasks, key)) return;

Callers 2

trackBatchTaskFunction · 0.85
patchBatchTaskFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected