Skip to content

Commit c971069

Browse files
Minor tmux fix
1 parent 935839a commit c971069

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/smolagents/bp_tools_tmux.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ def forward(self, session_name: str, command: str | None = None) -> str:
9292
"new-session", "-d", "-s", full, "-x", "200", "-y", "50", cmd,
9393
)
9494
if result.returncode != 0:
95-
return f"ERROR: {result.stderr.strip()}"
95+
return f"ERROR: {result.stderr.strip().replace(TMUX_PREFIX, '')}"
9696
return f"Session '{session_name}' created."
9797

9898

0 commit comments

Comments
 (0)