Commit 770ff04
fix: Clamp negative timedelta in
When `timeout_at` is already in the past, the subtraction produces a
negative timedelta that would be passed to API calls via `start`,
`call`, or `call_task` with `timeout='inherit'`. Clamp to zero instead.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>_get_remaining_time()
1 parent 13b1fea commit 770ff04
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1398 | 1398 | | |
1399 | 1399 | | |
1400 | 1400 | | |
1401 | | - | |
| 1401 | + | |
1402 | 1402 | | |
1403 | 1403 | | |
1404 | 1404 | | |
| |||
0 commit comments