feat: fall back to OpenCode when Anthropic is unavailable#107
feat: fall back to OpenCode when Anthropic is unavailable#107vinicius91carvalho wants to merge 2 commits into
Conversation
Code Review Roast 🔥Verdict: 1 Issue Found | Recommendation: Address before merge Overview
Issue Details (click to expand)
🔥 The incremental fix added a 1-second minimum floor to 🏆 Best part: The context-aware streaming with sync.Pool buffer reuse is actually clever. Memory allocation optimization while maintaining cancel propagation? I need to sit down. 💀 Worst part: 📊 Overall: Like a second pancake — better than the first but still slightly misshapen. Files Reviewed (2 files)
Fix these issues in Kilo Cloud Previous Review Summary (commit e1b12f8)Current summary above is authoritative. Previous snapshots are kept for context only. Previous review (commit e1b12f8)Verdict: No Issues Found | Recommendation: Merge Oh wait, this PR is actually clean. I need to sit down. I had my flamethrower warmed up and everything. 📊 Overall: Like finding a unicorn in production — I didn't think clean PRs existed anymore, but here we are. The Anthropic-first passthrough implementation is solid:
The only thing that made me raise an eyebrow was Files Reviewed (11 files)
Reviewed by laguna-m.1-20260312:free · Input: 241.6K · Output: 17.1K · Cached: 2.9M |
| } | ||
|
|
||
| func parseRetryAfter(value string, now time.Time) (time.Duration, bool) { | ||
| if seconds, err := strconv.Atoi(strings.TrimSpace(value)); err == nil && seconds >= 0 { |
There was a problem hiding this comment.
🔥 The Roast: Your Retry-After: 0 just became 1 second. The HTTP spec says 0 means "retry immediately" - not "wait a hot second and then retry". This is like updating a "ASAP" email to "tomorrow at 9 AM".
🩹 The Fix: Remove the 1-second floor. If seconds >= 0, return 0 for 0 values. If the date is already past, return 0 to indicate immediate retry is okay.
📏 Severity: warning
Reply with @kilocode-bot fix it to have Kilo Code address this issue.
Closes #106
Summary
Validation
Notes
The free Zen catalog still lists MiniMax M3 Free and Qwen3.6 Plus Free, but both report that their promotions ended. Defaults therefore use the currently working Nemotron 3 Ultra Free, MiMo V2.5 Free, and DeepSeek V4 Flash Free endpoints.