MCPcopy
hub / github.com/codeaashu/claude-code / getActivityDescription

Function getActivityDescription

src/tools/BashTool/BashTool.tsx:517–523  ·  view source on GitHub ↗
(input)

Source from the content-addressed store, hash-verified

515 return truncate(command, TOOL_SUMMARY_MAX_LENGTH);
516 },
517 getActivityDescription(input) {
518 if (!input?.command) {
519 return 'Running command';
520 }
521 const desc = input.description ?? truncate(input.command, TOOL_SUMMARY_MAX_LENGTH);
522 return `Running ${desc}`;
523 },
524 async validateInput(input: BashToolInput): Promise<ValidationResult> {
525 if (feature('MONITOR_TOOL') && !isBackgroundTasksDisabled && !input.run_in_background) {
526 const sleepPattern = detectBlockedSleepPattern(input.command);

Callers

nothing calls this directly

Calls 1

truncateFunction · 0.50

Tested by

no test coverage detected