Skip to content

Avoid claiming an unverifiable managed server has stopped - #26663

Merged
OrcaWin merged 1 commit into
mainfrom
nwparker/managed-serving-status-copy
Oct 9, 2026
Merged

OrcaWin merged 1 commit into
mainfrom
nwparker/managed-serving-status-copy

Conversation

@nwparker

@nwparker nwparker commented Oct 8, 2026 •

Copy link
Copy Markdown
Contributor
Files Added Deleted Net
Test 1 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​23 $\color{#cf222e}{\Huge{\mathbf{−}}}$​2 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​21
Prod 8 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​9 $\color{#cf222e}{\Huge{\mathbf{−}}}$​9 0

ELI5

A server can still be running when Orca cannot get an answer from it. SSH Settings now says that Orca could not confirm an answer, instead of claiming the server stopped.

What Changed

Replace the managed-server warning in all six translations with wording that matches an unverifiable result. Keep the existing host diagnostic, warning priority, and recovery behavior. Add three contact-failure cases to the copy tests and extend the real paused-process test to check the rendered warning and its removal after recovery. Route changes to this copy through that Docker SSH test in CI.

Why

On an owned Linux SSH host, the captured server PID stayed live while paused. Details correctly said “The managed Orca server process is live but is not answering,” but the main line said “The managed Orca server isn’t running and couldn’t be started.” The corrected wording describes what Orca can verify. Inferring whether the process has stopped from a failed reply would discard the host evidence, and changing recovery would not fix this misleading label.

Linked Issue

Found during SSH → Remote consolidation testing. Maintainer fix; no separate issue opened.

Visual Proof

Before: the main warning claims the server is not running while Details confirms the process is live.

Before

After: the warning reports that an answer could not be confirmed; the same diagnostic is retained.

After

Actual failing baseline · Actual corrected runtime · Four failing baseline copy cases

Testing

  • I manually tested these changes locally
  • Automated tests added/updated

Real hidden Electron renderer on macOS, installed adhoc server template on owned Linux Docker SSH hosts. Pause the captured server PID, reconnect, and open SSH Settings: the PID remains live and the warning matches the expanded host diagnostic. Resume that same PID and reconnect: the warning disappears and a real terminal-list request succeeds. The untouched renderer baseline fails this assertion in 35.3 seconds; the corrected case passes in 30.5 seconds. All three initial idle/recovery/reboot cases pass in 1.7 minutes.

Final stacked verification on 074e1c6c5ac: all four real SSH cases pass in 1.9 minutes (idle/wake 57.9 s; paused live process and rendered warning/recovery 30.1 s; cold-start reconnect 8.1 s; killed server and reboot 13.5 s). 102 affected tests / 10 files, full pnpm tc, full pnpm lint, changed-code quality against the parent, fresh Electron e2e build, and commit hooks pass.

managed-serving-status-stacked-runtime-green.log

Review

P2; low merge risk. Stacked on #26645, which is stacked on #26637: merge those parents first. The product change is one existing presentation label and its translations. Review the warning and expanded diagnostic together, and confirm that the warning clears after recovery.

Agent skill upstream boundary

  • Not applicable, or this change copies or mechanically translates no upstream skill-installer source, tests, fixtures, registry entries, path tables, comments, or documentation.

Notes

No RPC, host state, process lifecycle, or capability changes. Existing localization key and optional serving note remain compatible with older peers. Folder workspaces and Git providers are unaffected. Tests use background launches and disposable SSH hosts. Native Windows runtime was not exercised; the presentation change has no platform-specific branch.

CI is fully green after one failed-job retry. The initial Windows package job failed two unchanged native tests (Git Bash foreground readiness marker and profile-state SQLite writer deadline); its receipt is retained. The retry, Docker managed-server cases, and final verify gate all pass.

Checklist

  • This PR is small and focused
  • I explained what changed and why (ELI5, the user-facing before/after, the mechanism, and why over the alternatives)
  • Before/after screenshots or videos attached for UI changes, or N/A with reason
  • Self-reviewed for correctness, security, and performance
  • Cross-platform, SSH/remote, and path/shortcut impact considered (or N/A)
  • pnpm lint, pnpm typecheck, pnpm test, and pnpm build pass (or CI will cover; local preferred)

@nwparker
nwparker requested a review from brennanb2025 as a code owner October 8, 2026 20:06
@OrcaWin
OrcaWin force-pushed the nwparker/managed-start-reconnect-fence branch from ad088c9 to ebf6a29 Compare October 9, 2026 02:33
@OrcaWin
OrcaWin force-pushed the nwparker/managed-serving-status-copy branch from 074e1c6 to 68cf6a6 Compare October 9, 2026 05:33
@OrcaWin
OrcaWin changed the base branch from nwparker/managed-start-reconnect-fence to main October 9, 2026 05:33
@OrcaWin

OrcaWin commented Oct 9, 2026

Copy link
Copy Markdown
Collaborator

Triage adjustment: rebuilt onto main as one commit and retargeted to main; it no longer depends on #26645 or #26637. Kept the copy change in all six locales and the unit cases, and updated the two shared type comments that still described the note as 'could not be started'. Dropped the Docker idle-exit spec assertion and its CI routing entry because they rely on #26637's paused-process test. The copy is correct on main regardless: it also shows for fenced and unprovable-liveness verdicts, where the process may still be running.

@coderabbitai

coderabbitai Bot commented Oct 9, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: ca84c3b4-940b-4838-858d-5398d219dd9d
📥 Commits

Reviewing files that changed from the base of the PR and between 6a15cd8 and 68cf6a6.

📒 Files selected for processing (9)
  • src/renderer/src/components/settings/ssh-host-server-status-copy.test.ts
  • src/renderer/src/components/settings/ssh-host-server-status-copy.ts
  • src/renderer/src/i18n/locales/en.json
  • src/renderer/src/i18n/locales/es.json
  • src/renderer/src/i18n/locales/fr.json
  • src/renderer/src/i18n/locales/ja.json
  • src/renderer/src/i18n/locales/ko.json
  • src/renderer/src/i18n/locales/zh.json
  • src/shared/ssh-types.ts

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 3 remain after this review.


📝 Walkthrough

Walkthrough

The managed-server notServing warning now says that Orca could not confirm the server is responding. The warning tone and diagnostic detail remain unchanged. English, Spanish, French, Japanese, Korean, and Chinese translations use the updated wording. Tests cover unresponsive processes, cancelled SSH operations, and closed SSH transports. Related comments now describe an unconfirmed server response.

Priority: ⬇️ Low

Merge Risk: ⚪ Minimal · up to 68cf6

The warning now describes an unconfirmed response without changing server-status behavior, and the updated translations use the warning’s actual lookup key. No material merge risk remains.

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 1 functions across 3 files. (6 skipped: 6 … Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Title check Passed The title clearly and concisely describes the main change: preventing the UI from claiming that an unverifiable managed server has stopped.
Description check Passed The description is complete and focused. It covers the user-visible change, rationale, implementation scope, testing, visual proof, review guidance, compatibility considerations, and checklist status.…
Full details: Docstring Coverage

Explanation

Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 1 functions across 3 files. (6 skipped: 6 unsupported.)

  • Fix all pre-merge checks with AI
✨ Finishing Touches 💡 1
📝 Generate docstrings 💡
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@OrcaWin
OrcaWin merged commit b79862d into main Oct 9, 2026
50 of 71 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants