Commit 50ff249
authored
🤖 fix: correct web_fetch timeout unit (20000s → 20s) (#1054)
## Summary
Fixes the `web_fetch` tool hanging indefinitely on network issues
(#966).
## Root Cause
The `Runtime.exec` timeout option expects **seconds**, but
`web_fetch.ts` was multiplying by 1000 (treating it as milliseconds):
```typescript
// BUG: This resulted in 20,000 seconds (~5.5 hours) instead of 20 seconds
timeout: (WEB_FETCH_TIMEOUT_SECS + 5) * 1000
```
## Fix
Remove the `* 1000` multiplication:
```typescript
timeout: WEB_FETCH_TIMEOUT_SECS + 5 // 20 seconds
```
## Testing
- Typecheck passes
- Lint passes
Fixes #966
---
_Generated with `mux`_1 parent bae51a7 commit 50ff249
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
115 | | - | |
| 115 | + | |
116 | 116 | | |
117 | 117 | | |
118 | 118 | | |
| |||
0 commit comments