MCPcopy Create free account
hub / github.com/WJX20/claude-code / markTaskNotified

Function markTaskNotified

src/tasks/RemoteAgentTask/RemoteAgentTask.tsx:196–209  ·  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

194 * flag (caller should enqueue), false if already notified (caller should skip).
195 */
196function markTaskNotified(taskId: string, setAppState: SetAppState): boolean {
197 let shouldEnqueue = false;
198 updateTaskState<RemoteAgentTaskState>(taskId, setAppState, task => {
199 if (task.notified) {
200 return task;
201 }
202 shouldEnqueue = true;
203 return {
204 ...task,
205 notified: true
206 };
207 });
208 return shouldEnqueue;
209}
210
211/**
212 * Extract the plan content from the remote session log.

Calls 1

updateTaskStateFunction · 0.50

Tested by

no test coverage detected