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

Function stripSystemReminders

src/components/messageActions.tsx:399–408  ·  view source on GitHub ↗
(text: string)

Source from the content-addressed store, hash-verified

397 return t14;
398}
399export function stripSystemReminders(text: string): string {
400 const CLOSE = '</system-reminder>';
401 let t = text.trimStart();
402 while (t.startsWith('<system-reminder>')) {
403 const end = t.indexOf(CLOSE);
404 if (end < 0) break;
405 t = t.slice(end + CLOSE.length).trimStart();
406 }
407 return t;
408}
409export function copyTextOf(msg: NavigableMessage): string {
410 switch (msg.type) {
411 case 'user':

Callers 3

computeStickyPromptTextFunction · 0.85
isNavigableMessageFunction · 0.85
copyTextOfFunction · 0.85

Calls 1

trimStartMethod · 0.80

Tested by

no test coverage detected