Skip to content

Commit c33084a

Browse files
committed
docs(execute-command): note delayed command-output prompt for short commands
Document that execute_command only prompts about command output when a command is still running after a short delay, matching the Zoo-Code fix for #1042.
1 parent 8019120 commit c33084a

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

docs/advanced-usage/available-tools/execute-command.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ This tool executes terminal commands directly on the user's system, enabling a w
4848
- Integrates with VS Code shell API for reliable terminal execution
4949
- Reuses terminal instances when possible through a registry system
5050
- Captures command output line by line with real-time feedback
51+
- Only prompts about command output when a command is still running after a short delay, so quick commands complete without interruption
5152
- Supports long-running commands that continue in the background
5253
- Allows specification of custom working directories
5354
- Maintains terminal history and state across command executions
@@ -95,6 +96,7 @@ When the `execute_command` tool is invoked, it follows this process:
9596
- Throttles output handling (100ms intervals)
9697
- Monitors for command completion or errors
9798
- Detects "hot" processes like compilers for special handling
99+
- Asks for user input only when a command is still running after a few seconds; short foreground commands stream their output and finish without prompting
98100

99101
4. **Result Processing**:
100102
- Strips ANSI/VS Code escape sequences for clean output

0 commit comments

Comments
 (0)