MCPcopy Create free account
hub / github.com/ByBrawe/opencode-loop / stopWatchdog

Function stopWatchdog

src/index.js:937–941  ·  view source on GitHub ↗
(sessionID)

Source from the content-addressed store, hash-verified

935 if ((entry.pending || 0) > 0 && (entry.until || 0) >= now()) {
936 if (!id)
937 return true;
938 entry.pending -= 1;
939 entry.messageIDs.set(id, now() + LOOP_OWNED_USER_MESSAGE_RETENTION_MS);
940 loopOwnedUserMessageGuards.set(sessionID, entry);
941 return true;
942 }
943 if ((entry.pending || 0) <= 0 && entry.messageIDs.size === 0)
944 loopOwnedUserMessageGuards.delete(sessionID);

Callers 1

stopLoopFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected