MCPcopy Create free account
hub / github.com/RioArisk/claudecode_api_RemoteControl / clearTodoBatch

Function clearTodoBatch

app/src/modules/todo.js:24–38  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

22}
23
24export function clearTodoBatch() {
25 cancelTodoAutoClear();
26 todoState.tasks.clear();
27 todoState.pendingCreates.clear();
28 todoState.panelOpen = false;
29 todoState.autoOpenedForBatch = false;
30 $('todo-panel').classList.remove('has-tasks', 'open');
31 $('todo-list').innerHTML = '';
32 $('todo-summary').textContent = '';
33 $('todo-progress-bar').style.width = '0%';
34 $('todo-progress-bar').classList.remove('all-done');
35 $('todo-badge').textContent = '0';
36 $('todo-badge').classList.remove('done');
37 scheduleSessionCacheSave();
38}
39
40function syncTodoPanelLifecycle(tasks) {
41 const hasTasks = tasks.length > 0;

Callers 2

syncTodoPanelLifecycleFunction · 0.70
handleTodoToolUseFunction · 0.70

Calls 3

$Function · 0.90
scheduleSessionCacheSaveFunction · 0.90
cancelTodoAutoClearFunction · 0.70

Tested by

no test coverage detected