Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/services/tools/bash.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -894,8 +894,8 @@ describe("bash tool", () => {

expect(result.success).toBe(false);
if (!result.success) {
expect(result.error).toContain("sleep commands are blocked");
expect(result.error).toContain("polling loops");
expect(result.error).toContain("do not start commands with sleep");
expect(result.error).toContain("prefer <10s sleeps in busy loops");
expect(result.error).toContain("while ! condition");
expect(result.exitCode).toBe(-1);
expect(result.wall_duration_ms).toBe(0);
Expand Down
2 changes: 1 addition & 1 deletion src/services/tools/bash.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export const createBashTool: ToolFactory = (config: ToolConfiguration) => {
return {
success: false,
error:
"sleep commands are blocked to minimize waiting time. Instead, use polling loops to check conditions repeatedly (e.g., 'while ! condition; do sleep 1; done' or 'until condition; do sleep 1; done').",
"do not start commands with sleep; prefer <10s sleeps in busy loops (e.g., 'while ! condition; do sleep 1; done' or 'until condition; do sleep 1; done').",
exitCode: -1,
wall_duration_ms: 0,
};
Expand Down