MCPcopy Create free account
hub / github.com/codeaashu/claude-code / onProgress

Function onProgress

src/tools/BashTool/BashTool.tsx:883–894  ·  view source on GitHub ↗
(lastLines, allLines, totalLines, totalBytes, isIncomplete)

Source from the content-addressed store, hash-verified

881 const shellCommand = await exec(command, abortController.signal, 'bash', {
882 timeout: timeoutMs,
883 onProgress(lastLines, allLines, totalLines, totalBytes, isIncomplete) {
884 lastProgressOutput = lastLines;
885 fullOutput = allLines;
886 lastTotalLines = totalLines;
887 lastTotalBytes = isIncomplete ? totalBytes : 0;
888 // Wake the generator so it yields the new progress data
889 const resolve = resolveProgress;
890 if (resolve) {
891 resolveProgress = null;
892 resolve();
893 }
894 },
895 preventCwdChanges,
896 shouldUseSandbox: shouldUseSandbox(input),
897 shouldAutoBackground

Callers 7

callFunction · 0.70
executeForkedSkillFunction · 0.50
callFunction · 0.50
callFunction · 0.50
callFunction · 0.50
callFunction · 0.50
callMCPToolFunction · 0.50

Calls 1

resolveFunction · 0.50

Tested by

no test coverage detected