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

Function resetTodoState

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

Source from the content-addressed store, hash-verified

258window.toggleTodoPanel = toggleTodoPanel;
259
260export function resetTodoState() {
261 cancelTodoAutoClear();
262 todoState.tasks.clear();
263 todoState.pendingCreates.clear();
264 todoState.panelOpen = false;
265 todoState.autoOpenedForBatch = false;
266 $('todo-panel').classList.remove('has-tasks', 'open');
267 $('todo-list').innerHTML = '';
268 $('todo-summary').textContent = '';
269 $('todo-progress-bar').style.width = '0%';
270 $('todo-progress-bar').classList.remove('all-done');
271 $('todo-badge').textContent = '0';
272 $('todo-badge').classList.remove('done');
273}
274
275export function getTodoSnapshot() {
276 return {

Callers 2

clearConversationUiFunction · 0.90
restoreTodoSnapshotFunction · 0.70

Calls 2

$Function · 0.90
cancelTodoAutoClearFunction · 0.70

Tested by

no test coverage detected