bash: Shorten bash tool default timeout to 10s.
diff --git a/claudetool/bash.go b/claudetool/bash.go
index 7dec267..f3f0491 100644
--- a/claudetool/bash.go
+++ b/claudetool/bash.go
@@ -63,7 +63,7 @@
},
"timeout": {
"type": "string",
- "description": "Timeout as a Go duration string, defaults to 1m if background is false; 10m if background is true"
+ "description": "Timeout as a Go duration string, defaults to 10s if background is false; 10m if background is true"
},
"background": {
"type": "boolean",
@@ -98,7 +98,7 @@
if i.Background {
return 10 * time.Minute
} else {
- return 1 * time.Minute
+ return 10 * time.Second
}
}
diff --git a/claudetool/bash_test.go b/claudetool/bash_test.go
index 5091e84..45dd4fe 100644
--- a/claudetool/bash_test.go
+++ b/claudetool/bash_test.go
@@ -394,7 +394,7 @@
Background: false,
}
fgTimeout := foreground.timeout()
- expectedFg := 1 * time.Minute
+ expectedFg := 10 * time.Second
if fgTimeout != expectedFg {
t.Errorf("Expected foreground default timeout to be %v, got %v", expectedFg, fgTimeout)
}