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

Function isJunkContent

app/src/modules/renderer.js:213–219  ·  view source on GitHub ↗
(content)

Source from the content-addressed store, hash-verified

211
212// ---- Junk filtering ----
213function isJunkContent(content) {
214 if (typeof content !== 'string') return false;
215 const t = content.trim();
216 if (/^\/[a-z]+$/i.test(t)) return true;
217 if (/^Set model to/i.test(t) || /Set model to/i.test(t.replace(/\x1B\[[0-9;]*m/g, ''))) return true;
218 return JUNK_PATTERNS.some(p => p.test(t));
219}
220
221// ---- Model / Header ----
222export function syncConfirmedModel(nextModel, { allowToast = false } = {}) {

Callers 1

processEventFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected