MCPcopy
hub / github.com/claude-code-best/claude-code / removeSessionCronTasks

Function removeSessionCronTasks

src/bootstrap/state.ts:1285–1293  ·  view source on GitHub ↗
(ids: readonly string[])

Source from the content-addressed store, hash-verified

1283 * were accounted for here.
1284 */
1285export function removeSessionCronTasks(ids: readonly string[]): number {
1286 if (ids.length === 0) return 0
1287 const idSet = new Set(ids)
1288 const remaining = STATE.sessionCronTasks.filter(t => !idSet.has(t.id))
1289 const removed = STATE.sessionCronTasks.length - remaining.length
1290 if (removed === 0) return 0
1291 STATE.sessionCronTasks = remaining
1292 return removed
1293}
1294
1295export function setSessionTrustAccepted(accepted: boolean): void {
1296 STATE.sessionTrustAccepted = accepted

Callers 2

removeCronTasksFunction · 0.85
processFunction · 0.85

Calls 1

hasMethod · 0.45

Tested by

no test coverage detected