[cli] fix: require clean service-stop result - #269
Conversation
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
|
Warning Review limit reached
Next review available in: 55 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: Pro Run ID: 📒 Files selected for processing (4)
📝 WalkthroughWalkthroughAdds a check for a non-empty Changesstop_keep Message Validation
Estimated code review effort: 2 (Simple) | ~10 minutes Sequence Diagram(s)sequenceDiagram
participant User
participant CLI as keep-gpu CLI
participant Validator as _require_clean_stop_keep_for_service_stop
participant Daemon
User->>CLI: keep-gpu service-stop
CLI->>Validator: check stop_keep result
alt message field non-empty
Validator->>Validator: append message to incomplete list
Validator-->>CLI: raise error
CLI-->>User: exit code 1, message + --force hint
CLI--xDaemon: stop_process not called
else no message
Validator-->>CLI: validation passes
CLI->>Daemon: stop_process
end
Possibly related PRs
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
1c55f49 to
e70ed25
Compare
Summary
service-stopfrom signaling the daemon whenstop_keepreturns a non-empty messagestop_keeprequirement in AGENTS.md and the CLI referenceVerification
Summary by CodeRabbit
Bug Fixes
keep-gpu service-stopvalidation so malformed stop responses are treated as incomplete when they include a message, preventing shutdown from continuing with bad input.--forcehint when applicable.Tests