MCPcopy Create free account
hub / github.com/Epic0522/Codex-Remote-Contact / rememberIMessageReply

Function rememberIMessageReply

src/server.js:3027–3035  ·  view source on GitHub ↗
(text)

Source from the content-addressed store, hash-verified

3025}
3026
3027function rememberIMessageReply(text) {
3028 const normalized = normalizeIMessageEchoText(text);
3029 if (!normalized) return;
3030 const now = Date.now();
3031 for (const [replyText, sentAt] of recentIMessageReplies) {
3032 if (now - sentAt > imessageReplyEchoTtlMs) recentIMessageReplies.delete(replyText);
3033 }
3034 recentIMessageReplies.set(normalized, now);
3035}
3036
3037function isRecentIMessageReplyEcho(text) {
3038 const normalized = normalizeIMessageEchoText(text);

Callers 1

sendIMessageReplyFunction · 0.85

Calls 1

Tested by

no test coverage detected