MCPcopy Index your code
hub / github.com/codeaashu/claude-code / markTaskNotified

Function markTaskNotified

src/tasks/RemoteAgentTask/RemoteAgentTask.tsx:189–202  ·  view source on GitHub ↗

* Atomically mark a task as notified. Returns true if this call flipped the * flag (caller should enqueue), false if already notified (caller should skip).

(taskId: string, setAppState: SetAppState)

Source from the content-addressed store, hash-verified

187 * flag (caller should enqueue), false if already notified (caller should skip).
188 */
189function markTaskNotified(taskId: string, setAppState: SetAppState): boolean {
190 let shouldEnqueue = false;
191 updateTaskState(taskId, setAppState, task => {
192 if (task.notified) {
193 return task;
194 }
195 shouldEnqueue = true;
196 return {
197 ...task,
198 notified: true
199 };
200 });
201 return shouldEnqueue;
202}
203
204/**
205 * Extract the plan content from the remote session log.

Calls 1

updateTaskStateFunction · 0.50

Tested by

no test coverage detected