Repository navigation
fix(ssh): log an unanswered native-deps probe instead of launching silently - #18000
Conversation
|
Warning Review limit reachedNext included review available in 2 minutes. View limit detailsLimit details: You’ve used all 10 included reviews currently available. You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Review configuration: ⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Team Run ID: 📒 Files selected for processing (3)
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Team Run ID: 📒 Files selected for processing (2)
Included review availability: Your plan provides up to 10 included reviews per hour; 9 remain after this review. 📝 WalkthroughWalkthroughThe native dependency probe now binds unanswered probe errors and logs a warning with the error text and relay directory. The probe still returns Merge Risk: ⚪ Minimal · up to The change only records a warning when the native-dependencies probe cannot be verified and does not alter relay launch or repair behavior; no actionable merge-blocking risk remains after normal checks and review. 🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (3 passed)
Full details: Description checkExplanation The description explains the problem, implementation, behavior, and testing, but it omits several required template sections and checklist items. It does not include the required What Changed, Why, Linked Issue, Visual Proof with an explicit N/A statement, AI Disclosure, Review, Agent skill upstream boundary, Notes, or Checklist sections. Resolution Complete the required template sections. Add What Changed and Why, use an explicit linked issue entry such as "Fixes ✨ Finishing Touches 💡 1📝 Generate docstrings 💡
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.
ℹ️ Minor suggestions inline.
Reviewed changes
This run reviewed the addition of a console.warn trace on the unverifiable path of probeRequiredNativeDeps, plus a test assertion that the warning is emitted when a probe never answers. No control flow, repair decision, or lock handling changed.
- Log an unanswered probe —
probeRequiredNativeDepsnowconsole.warns[ssh-relay] Native deps probe unanswered at …before returningunverifiable, so a dropped exec channel leaves a trace without triggering a destructive rebuild. - Trace assertion — the existing
launches an intact relay when the health probe never answerscase now also asserts the warning is present, sitting beside the repair-avoidance assertions it complements.
The test is real (it fails with the production line reverted, per the PR body), and console.warn with the [ssh-relay] prefix matches sibling logging in this file.
The one caveat is that the launching without repair claim is only true for the initial-probe call site — see the inline comment.
DeepSeek Pro (free via Pullfrog for OSS) | 𝕏
a5c47e5 to
3ccdc34
Compare
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes
This run reviewed the follow-up commit that resolves the prior review's inline feedback by rewording the unverifiable trace log.
- Rephrased the unverifiable warning — the
console.warnoutcome clause changed fromlaunching without repairtotreating as unverifiable, which is accurate for both call sites: the initial probe launches as-is, while the locked re-probe still runs repair. - Adjusted the trace rationale comment — the
// Why:note now states that the wrongful rebuild was the only visible symptom, rather than framing the log as "the silent path is the whole point."
The test is unchanged apart from a clarifying comment; the wording matches sibling logging in this file.
DeepSeek Pro (free via Pullfrog for OSS) | 𝕏
…lently The wrongful rebuild used to be the only visible symptom of a dropped exec channel; #17979 removed it, so a real transport failure now leaves no trace. Matches the install-path sibling, whose callers log the same class of failure.
3ccdc34 to
f3261e5
Compare
|
Rebased onto current The branch was stale on - } catch {
+ } catch (error) {
signal?.throwIfAborted()
// Why: an unanswered probe says nothing about the deps; ...
+ // Why: the wrongful rebuild was the only visible symptom, so without this line a dropped exec
+ // channel leaves no trace at all.
+ console.warn(
+ `[ssh-relay] Native deps probe unanswered at ${remoteDir}; treating as unverifiable: ${
+ error instanceof Error ? error.message : String(error)
+ }`
+ )
return { status: 'unverifiable', missing: [] }The change is still needed: Wording adopted from the review: Verified: |
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes
This run reviewed the single commit landed since the prior pullfrog review, which restores an i18n key that a rebase dropped.
- Restored
activityOptionskey — re-addedactivityOptionsto theActivityPrototypePageobject inen.jsonwith the missing trailing comma aftershowChildAgents. The key value is valid and matches the single consumer atactivity-thread-options-menu.tsx:104(auto.components.activity.ActivityPrototypePage.activityOptions);en.jsonnow parses cleanly.
The SSH probe-logging changes from the earlier commits were already reviewed and approved; nothing about them changed in this delta.
DeepSeek Pro (free via Pullfrog for OSS) | 𝕏
…lently (stablyai#18000) * fix(ssh): log an unanswered native-deps probe instead of launching silently The wrongful rebuild used to be the only visible symptom of a dropped exec channel; stablyai#17979 removed it, so a real transport failure now leaves no trace. Matches the install-path sibling, whose callers log the same class of failure. * fix(i18n): restore the activity-options key the rebase dropped * fix(i18n): union en.json with main so the rebase cannot drop keys

Follow-up to #17979 (merged). Addresses valid review feedback: the fix made a real transport failure silent.
ELI5
#17979 stopped an unanswered native-deps probe from wiping a healthy relay. But the wrongful rebuild was the only visible symptom of a dropped exec channel — it surfaced as a loud
Repairing missing native depswarning plus a visible build. Removing it means a genuine transport failure now leaves zero trace: the relay just launches.This adds a
console.warnon the unverifiable path, so lost contact is still reported without being acted on destructively.The install-path sibling already does this — its callers log the same class of failure as
[NATIVE-DEPS-REBUILD-FAIL]/[NPTY-MISSING]. This is the repair path catching up to it, which is the same twin-asymmetry that produced #17979 itself.The error message is included, so a torn channel and a timed-out
require()are distinguishable in logs.User-facing regressions
None. Log-only — no control flow, no repair decision, no lock handling changes. The relay still launches exactly as #17979 made it.
Testing
Extends the existing
launches an intact relay when the health probe never answerscase rather than adding a parallel one, so the trace assertion sits directly beside the repair-avoidance assertions it complements.Before (production change reverted, test in place):
After:
pnpm tc:nodeclean.check:code-quality:changed→ 0 new findings across 2 files.Credit
Caught by automated review on #17979, which flagged that the install-path sibling surfaces this failure loudly while the repair path now swallows it. The observation was correct and worth acting on.