Skip to content

Commit 4b85704

Browse files
committed
Bug(large-shell-command): large shell commands with heredocs
1 parent e324514 commit 4b85704

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[project]
22
authors = [{ name = "Aman Rusia", email = "[email protected]" }]
33
name = "wcgw"
4-
version = "5.5.0"
4+
version = "5.5.1"
55
description = "Shell and coding agent for Claude and other mcp clients"
66
readme = "README.md"
77
requires-python = ">=3.11"

src/wcgw/client/bash_state/bash_state.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1262,8 +1262,8 @@ def _execute_bash(
12621262
is_bg = True
12631263

12641264
bash_state.clear_to_run()
1265-
for i in range(0, len(command), 128):
1266-
bash_state.send(command[i : i + 128], set_as_command=None)
1265+
for i in range(0, len(command), 64):
1266+
bash_state.send(command[i : i + 64], set_as_command=None)
12671267
bash_state.send(bash_state.linesep, set_as_command=command)
12681268
elif isinstance(command_data, StatusCheck):
12691269
bash_state.console.print("Checking status")

src/wcgw/client/tool_prompts.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
- The first or the last line might be `(...truncated)` if the output is too long.
4444
- Always run `pwd` if you get any file or directory not found error to make sure you're not lost.
4545
- Do not run bg commands using "&", instead use this tool.
46-
- Do not use 'cat' to read files, use ReadFiles tool instead
46+
- You must not use echo/cat to read/write files, use ReadFiles/FileWriteOrEdit
4747
- In order to check status of previous command, use `status_check` with empty command argument.
4848
- Only command is allowed to run at a time. You need to wait for any previous command to finish before running a new one.
4949
- Programs don't hang easily, so most likely explanation for no output is usually that the program is still running, and you need to check status again.

0 commit comments

Comments
 (0)