MCPcopy
hub / github.com/claude-code-best/claude-code / flushAndCleanup

Function flushAndCleanup

src/tasks/LocalShellTask/LocalShellTask.tsx:556–563  ·  view source on GitHub ↗
(shellCommand: ShellCommand)

Source from the content-addressed store, hash-verified

554}
555
556async function flushAndCleanup(shellCommand: ShellCommand): Promise<void> {
557 try {
558 await shellCommand.taskOutput.flush();
559 shellCommand.cleanup();
560 } catch (error) {
561 logError(error);
562 }
563}

Callers 3

spawnShellTaskFunction · 0.85
backgroundTaskFunction · 0.85

Calls 3

logErrorFunction · 0.50
flushMethod · 0.45
cleanupMethod · 0.45

Tested by

no test coverage detected