fix: nil pointer guards, worker slack adapter, translator logic, focus/digest wiring#9
Conversation
…s/digest wiring - AI client: add extractContent helper to guard resp.Choices[0] in all 5 methods - Worker: add workerSlackAPI adapter wrapping slack.Client to prevent nil SlackAPI panic - Translator: send translation DM to current user when ambiguous phrase lacks @-mentions - Focus mode: wire focus_open_thread button to sendSummaryToDM with AI summary - Digest: populate threads section using AI GenerateDigestContent - dead code: remove unused RateLimitInfo type and time import - Fix pre-existing compilation bug: pass slackAPI to NewController call in api/main.go
|
Warning Review limit reached
Next review available in: 27 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Free Run ID: 📒 Files selected for processing (6)
Note 🎁 Summarized by CodeRabbit FreeYour organization is on the Free plan. CodeRabbit will generate a high-level summary and a walkthrough for each pull request. For a comprehensive line-by-line review, please upgrade your subscription to CodeRabbit Pro by visiting https://app.coderabbit.ai/login. Comment |
Fixes
CRITICAL (crashes)
extractContenthelper guardingresp.Choices[0]access in all 5 methods. Panics on empty AI response are now handled.workerSlackAPIadapter wrappingslack.Clientto prevent panic onOpenDMChannelin digest scheduler.HIGH (feature bugs)
sendSummaryToDM(): fetches channel history, runs AI summarization, posts to DM.GenerateDigestContentinstead of always-empty slice.slackAPIargument toNewControllercall incmd/api/main.go(caused compilation failure on main).MEDIUM (polish)
RateLimitInfotype andtimeimport fromai/client.go.Verification