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

Function looksLikePrompt

src/tasks/LocalShellTask/LocalShellTask.tsx:39–42  ·  view source on GitHub ↗
(tail: string)

Source from the content-addressed store, hash-verified

37// directed questions
38/Press (any key|Enter)/i, /Continue\?/i, /Overwrite\?/i];
39export function looksLikePrompt(tail: string): boolean {
40 const lastLine = tail.trimEnd().split('\n').pop() ?? '';
41 return PROMPT_PATTERNS.some(p => p.test(lastLine));
42}
43
44// Output-side analog of peekForStdinData (utils/process.ts): fire a one-shot
45// notification if output stops growing and the tail looks like a prompt.

Callers 1

startStallWatchdogFunction · 0.85

Calls 1

popMethod · 0.80

Tested by

no test coverage detected