Conversation
Sidecar disable returned listener status without ok:true, so !res.ok treated a successful Off as failure. Stamp ok on disable and only treat explicit ok:false as failure in the Remote UI.
|
Warning Review limit reached
Next review available in: 53 minutes You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. 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: Path: .coderabbit.yaml Review profile: QUIET Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThe sidecar now marks successful RNCP listener disable responses with ChangesRNCP response handling
Estimated code review effort: 3 (Moderate) | ~20 minutes Possibly related PRs
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 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 |
There was a problem hiding this comment.
Note
Quiet mode is enabled, so only the most important comments were posted inline. Other review comments are grouped below.
🟡 Other comments (1)
reticulum-sidecar/src/stack/mod.rs-2101-2103 (1)
2101-2103: 📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick winUpdate the stale response-contract comments.
isRemoteOkFailurenow treats only explicitok: falseas failure. Both comments state that a missingokvalue is a current UI failure condition. That statement is no longer correct.
reticulum-sidecar/src/stack/mod.rs#L2101-L2103: describeok: trueas an explicit success marker for the RNCP response contract.reticulum-sidecar/src/stack/mod.rs#L2834-L2835: remove the statement that the UI treats missingokas failure.🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@reticulum-sidecar/src/stack/mod.rs` around lines 2101 - 2103, Update the comments near with_rncp_listener_ok at reticulum-sidecar/src/stack/mod.rs lines 2101-2103 to describe ok: true as the explicit RNCP success marker; at lines 2834-2835 in the same file, remove the claim that missing ok is treated as a UI failure. No runtime behavior changes are needed.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Other comments:
In `@reticulum-sidecar/src/stack/mod.rs`:
- Around line 2101-2103: Update the comments near with_rncp_listener_ok at
reticulum-sidecar/src/stack/mod.rs lines 2101-2103 to describe ok: true as the
explicit RNCP success marker; at lines 2834-2835 in the same file, remove the
claim that missing ok is treated as a UI failure. No runtime behavior changes
are needed.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: QUIET
Plan: Pro Plus
Run ID: 9aadb733-6115-4dcf-8230-b701fe374cf9
📒 Files selected for processing (7)
reticulum-sidecar/src/stack/mod.rssrc/renderer/components/remote/RemoteSettingsSection.test.tsxsrc/renderer/components/remote/RemoteSettingsSection.tsxsrc/renderer/components/remote/RncpEnableRequestModal.tsxsrc/renderer/lib/pushRncpListenerPolicy.tssrc/shared/remote-types.isRemoteOkFailure.test.tssrc/shared/remote-types.ts
Summary
ok: truewith listener status (matched enable contract); previously status alone made!res.oktreat a successful Off as failure.ok === falsevia sharedisRemoteOkFailure(Settings, enable-request modal, push policy).ok: falsefailure.Diagnosed from Runr developer bundle: clicking Remote → Settings → Off toasted "Failed to apply setting" even though disable succeeded.
Test plan
pnpm exec vitest run src/shared/remote-types.isRemoteOkFailure.test.ts src/renderer/components/remote/RemoteSettingsSection.test.tsxcargo test --manifest-path reticulum-sidecar/Cargo.toml with_rncp_listener_ok_stamps_ok_true_on_statusSummary by CodeRabbit
Bug Fixes
Tests