diff --git a/.claude/checkpoints/task-1754364739.json b/.claude/checkpoints/task-1754364739.json new file mode 100644 index 0000000000..b45048c26e --- /dev/null +++ b/.claude/checkpoints/task-1754364739.json @@ -0,0 +1 @@ +{"checkpoint": "task-20250805-033218", "task": "{{user_prompt}} ", "timestamp": "2025-08-05T03:32:19Z", "commit": "42e924bdd72685a68bbd1dadcaf9cd3d6dd701c4", "github_release": "true"} diff --git a/src/cli/simple-commands/stream-processor.js b/src/cli/simple-commands/stream-processor.js index 77ea1e9e27..bc5905ae46 100644 --- a/src/cli/simple-commands/stream-processor.js +++ b/src/cli/simple-commands/stream-processor.js @@ -112,9 +112,33 @@ export class StreamJsonProcessor extends Transform { } } } else if (content.type === 'tool_use') { - // Show tool use concisely + // Show tool use with actual command/input when available const toolName = content.name.replace(/([A-Z])/g, ' $1').trim(); - console.log(`🔧 ${toolName}`); + + // For Bash tool, show the actual command + if (content.name === 'Bash' && content.input?.command) { + const command = content.input.command; + if (command.length > 80) { + console.log(`🔧 Bash: ${command.substring(0, 77)}...`); + } else { + console.log(`🔧 Bash: ${command}`); + } + } + // For other tools, show key parameters + else if (content.input && Object.keys(content.input).length > 0) { + const firstKey = Object.keys(content.input)[0]; + const firstValue = content.input[firstKey]; + + if (typeof firstValue === 'string' && firstValue.length < 60) { + console.log(`🔧 ${toolName}: ${firstValue}`); + } else if (typeof firstValue === 'string') { + console.log(`🔧 ${toolName}: ${firstValue.substring(0, 57)}...`); + } else { + console.log(`🔧 ${toolName}`); + } + } else { + console.log(`🔧 ${toolName}`); + } } } break;