summaryrefslogtreecommitdiff
path: root/internal/executor/claude.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/executor/claude.go')
-rw-r--r--internal/executor/claude.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/internal/executor/claude.go b/internal/executor/claude.go
index ad1c4e3..9184333 100644
--- a/internal/executor/claude.go
+++ b/internal/executor/claude.go
@@ -433,7 +433,9 @@ func parseStream(r io.Reader, w io.Writer, logger *slog.Logger) (float64, error)
if info, ok := msg["rate_limit_info"].(map[string]interface{}); ok {
status, _ := info["status"].(string)
if status == "rejected" {
- streamErr = fmt.Errorf("claude rate limit reached: %v", msg)
+ streamErr = fmt.Errorf("claude rate limit reached (rejected): %v", msg)
+ // Immediately break since we can't continue anyway
+ break
}
}
case "assistant":