Commit 6ee29ae
Allow retrying timed-out messages (status=pending)
The retry handlers only checked for status === "error", but timed-out messages have status === "pending" (they never received an explicit error response, just exceeded the 30s timeout).
Fixed both chat and DM retry handlers to allow retrying messages that are either:
1. status === "error" (explicit failure with error reason)
2. status === "pending" AND elapsed > 30000ms (timed out)
This matches the UI behavior where timed-out messages display [✗ timeout].
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>1 parent a6bfcc7 commit 6ee29ae
1 file changed
Lines changed: 12 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2210 | 2210 | | |
2211 | 2211 | | |
2212 | 2212 | | |
2213 | | - | |
2214 | | - | |
| 2213 | + | |
| 2214 | + | |
| 2215 | + | |
| 2216 | + | |
| 2217 | + | |
| 2218 | + | |
2215 | 2219 | | |
2216 | 2220 | | |
2217 | 2221 | | |
| |||
2340 | 2344 | | |
2341 | 2345 | | |
2342 | 2346 | | |
2343 | | - | |
2344 | | - | |
| 2347 | + | |
| 2348 | + | |
| 2349 | + | |
| 2350 | + | |
| 2351 | + | |
| 2352 | + | |
2345 | 2353 | | |
2346 | 2354 | | |
2347 | 2355 | | |
| |||
0 commit comments