bash: Shorten bash tool default timeout to 10s.
diff --git a/loop/testdata/agent_loop.httprr b/loop/testdata/agent_loop.httprr
index c0bf004..c5c9474 100644
--- a/loop/testdata/agent_loop.httprr
+++ b/loop/testdata/agent_loop.httprr
@@ -1,9 +1,9 @@
httprr trace v1
-16930 2597
+16931 2233
POST https://api.anthropic.com/v1/messages HTTP/1.1
Host: api.anthropic.com
User-Agent: Go-http-client/1.1
-Content-Length: 16732
+Content-Length: 16733
Anthropic-Version: 2023-06-01
Content-Type: application/json
@@ -40,7 +40,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",
@@ -545,25 +545,25 @@
}HTTP/2.0 200 OK
Anthropic-Organization-Id: 3c473a21-7208-450a-a9f8-80aebda45c1b
Anthropic-Ratelimit-Input-Tokens-Limit: 200000
-Anthropic-Ratelimit-Input-Tokens-Remaining: 199000
-Anthropic-Ratelimit-Input-Tokens-Reset: 2025-05-13T23:34:09Z
+Anthropic-Ratelimit-Input-Tokens-Remaining: 200000
+Anthropic-Ratelimit-Input-Tokens-Reset: 2025-05-14T00:18:00Z
Anthropic-Ratelimit-Output-Tokens-Limit: 80000
Anthropic-Ratelimit-Output-Tokens-Remaining: 80000
-Anthropic-Ratelimit-Output-Tokens-Reset: 2025-05-13T23:34:14Z
+Anthropic-Ratelimit-Output-Tokens-Reset: 2025-05-14T00:18:04Z
Anthropic-Ratelimit-Requests-Limit: 4000
Anthropic-Ratelimit-Requests-Remaining: 3999
-Anthropic-Ratelimit-Requests-Reset: 2025-05-13T23:34:07Z
+Anthropic-Ratelimit-Requests-Reset: 2025-05-14T00:17:59Z
Anthropic-Ratelimit-Tokens-Limit: 280000
-Anthropic-Ratelimit-Tokens-Remaining: 279000
-Anthropic-Ratelimit-Tokens-Reset: 2025-05-13T23:34:09Z
+Anthropic-Ratelimit-Tokens-Remaining: 280000
+Anthropic-Ratelimit-Tokens-Reset: 2025-05-14T00:18:00Z
Cf-Cache-Status: DYNAMIC
-Cf-Ray: 93f5f6fa7ab517d2-SJC
+Cf-Ray: 93f6373918bc7afd-SJC
Content-Type: application/json
-Date: Tue, 13 May 2025 23:34:14 GMT
-Request-Id: req_011CP6QRHtUEsXiGbCcrW7o4
+Date: Wed, 14 May 2025 00:18:04 GMT
+Request-Id: req_011CP6TmGW2vmPmS7JfqFK5U
Server: cloudflare
Strict-Transport-Security: max-age=31536000; includeSubDomains; preload
Via: 1.1 google
X-Robots-Tag: none
-{"id":"msg_012bL4iRbhpsvzdekbT6Jheq","type":"message","role":"assistant","model":"claude-3-7-sonnet-20250219","content":[{"type":"text","text":"I'll list the tools available to me briefly:\n\n1. bash - Execute shell commands\n2. keyword_search - Search for files with keywords\n3. think - Take notes, form plans (no external effects)\n4. title - Set conversation title\n5. precommit - Create a git branch for tracking work\n6. done - Complete a task with checklist verification\n7. codereview - Run automated code review\n8. multiplechoice - Present the user with multiple choice options\n9. browser_navigate - Navigate to a URL\n10. browser_click - Click an element on a webpage\n11. browser_type - Type text into a web form element\n12. browser_wait_for - Wait for an element to appear\n13. browser_get_text - Get text from a webpage element\n14. browser_eval - Run JavaScript in browser context\n15. browser_scroll_into_view - Scroll to make an element visible\n16. browser_resize - Resize browser window\n17. browser_recent_console_logs - Get browser console logs\n18. browser_clear_console_logs - Clear browser console logs\n19. browser_take_screenshot - Take screenshot of webpage\n20. browser_read_image - Read an image file\n21. patch - Make precise text edits to files\n\nThese tools allow me to perform a wide range of actions from running commands, searching code, browsing the web, manipulating files, and managing git workflows."}],"stop_reason":"end_turn","stop_sequence":null,"usage":{"input_tokens":4,"cache_creation_input_tokens":3888,"cache_read_input_tokens":0,"output_tokens":318}}
\ No newline at end of file
+{"id":"msg_01K2J8Qx4ZGm7pds3aQd83SV","type":"message","role":"assistant","model":"claude-3-7-sonnet-20250219","content":[{"type":"text","text":"Here are the tools available to me:\n\n1. bash - Executes shell commands\n2. keyword_search - Searches files using keywords\n3. think - For thinking out loud, taking notes, or planning\n4. title - Sets conversation title\n5. precommit - Creates git branches and provides commit guidance\n6. done - Indicates task completion with a checklist\n7. codereview - Runs automated code review\n8. multiplechoice - Presents multiple choice questions to users\n9. Browser tools:\n - browser_navigate, browser_click, browser_type, browser_wait_for\n - browser_get_text, browser_eval, browser_scroll_into_view\n - browser_resize, browser_recent_console_logs, browser_clear_console_logs\n - browser_take_screenshot, browser_read_image\n10. patch - Modifies files with precise text edits\n\nThese tools allow me to perform tasks like executing code, searching files, interacting with browsers, editing files, and managing git repositories."}],"stop_reason":"end_turn","stop_sequence":null,"usage":{"input_tokens":4,"cache_creation_input_tokens":3888,"cache_read_input_tokens":0,"output_tokens":234}}
\ No newline at end of file