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

Function isUserInterruptEvent

lib/transcript.js:74–80  ·  view source on GitHub ↗
(content)

Source from the content-addressed store, hash-verified

72}
73
74function isUserInterruptEvent(content) {
75 const text = flattenUserContent(content)
76 .replace(/\x1B\[[0-9;]*m/g, '')
77 .trim();
78 if (!text) return false;
79 return /(?:^|\n)\[Request interrupted by user(?: for tool use)?\](?:\r?\n|$)/i.test(text);
80}
81
82function isNonAiUserEvent(event, content) {
83 if (!event || typeof event !== 'object') return false;

Callers 2

isNonAiUserEventFunction · 0.85
startTailingFunction · 0.85

Calls 1

flattenUserContentFunction · 0.85

Tested by

no test coverage detected