Repository navigation
Conversation
Greptile SummaryThe PR clarifies the difference between PID-scoped orcad replacement and cgroup-wide systemd restarts, emphasizing that systemd teardown does not preserve live terminal processes.
Confidence Score: 5/5The PR appears safe to merge. No blocking failure remains.
|
| Filename | Overview |
|---|---|
| docs/reference/orcad-operations.md | Clarifies process-versus-cgroup lifecycle semantics and revises the census rule to account explicitly for omitted hosts outside the affected service boundary. |
| docs/reference/headless-linux-server.md | Documents that service restarts destroy live cgroup-owned work and adds a fail-closed census procedure before upgrades. |
| docs/reference/ssh-execution-boundary.md | Updates execution-boundary guidance consistently with the revised process-ownership terminology. |
| config/scripts/orcad-operations-restart-safety.test.mjs | Adds contract checks for restart semantics, census requirements, launcher paths, and removal of the unavailable design reference. |
| config/scripts/headless-serve-shutdown-workflow.test.mjs | Extends documentation checks for persisted-state wording, census scope, and ordinary Linux CLI naming. |
Reviews (19): Last reviewed commit: "docs(linux): use absolute service CLI la..." | Re-trigger Greptile
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (5)
Included review availability: Your plan provides up to 10 included reviews per hour; 5 remain after this review. 📝 WalkthroughWalkthroughThe changes document restart and shutdown behavior for headless Linux deployments. They distinguish persisted state from live processes, define Merge Risk: 🔵 Low · up to The documentation now clearly separates safe PID-scoped updates from destructive systemd restarts and requires a fresh, complete empty-session check before maintenance. Because that check and the subsequent stop are not atomic, newly admitted work could still be interrupted during the transition; the change is mergeable with explicit owner awareness or follow-up on an atomic maintenance fence. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Full details: Docstring CoverageExplanation 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 2 files. (3 skipped: 3 unsupported.) Full details: Description checkExplanation The description is complete and aligned with the template. It explains the change and rationale, links related issues, documents testing, states that visual proof is not applicable, and completes the review and checklist sections.
✨ 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 |
160c77d to
6b05ef2
Compare
ef6d58d to
c0383df
Compare
6b05ef2 to
a65256a
Compare
c0383df to
b62845e
Compare
2916743 to
f1b8ebc
Compare
cb7594e to
5eb925b
Compare
24eed39 to
ac48e2d
Compare
4a2ad72 to
9cf0382
Compare
ac48e2d to
79082e9
Compare
9cf0382 to
8b4b207
Compare
4dcb42c to
fd09d73
Compare
8b4b207 to
1242078
Compare
fd09d73 to
ecbbcac
Compare
106ae25 to
9c9f1f1
Compare
ecbbcac to
100c083
Compare
b395a23 to
7bc3124
Compare
6b034a2 to
903d821
Compare
903d821 to
1486b1a
Compare
ecdda0c to
2fb6c24
Compare
1486b1a to
1b1ca5d
Compare
2fb6c24 to
df041eb
Compare
1b1ca5d to
ff0f27d
Compare
df041eb to
50b7959
Compare
ff0f27d to
7e37e1e
Compare
50b7959 to
65d9706
Compare
7e37e1e to
984b8cc
Compare
65d9706 to
afbdaee
Compare
984b8cc to
cfda0c5
Compare
afbdaee to
8390e2f
Compare
317d5c9 to
b4809cb
Compare
8390e2f to
3c536aa
Compare
b4809cb to
7ef9d5d
Compare
7ef9d5d to
e663823
Compare
…ly (#17918) Closes #17702. The resources/package-type marker is authoritative but never checked against the host, so any repackager that unpacks Orca's .deb -- AUR, Nix, a container rebuild -- inherits `deb` verbatim. Install feasibility was then computed after a ~165 MB download, so those users got check -> download -> a card promising an install command -> a dead end. Validate the marker against the host: a deb/rpm marker with no matching package manager in the trusted directories means a package manager owns this install. This reuses the exact lists and resolver that buildLinuxPackageInstallCommand already loops over, so a false positive is impossible by construction -- any host flagged here would have failed with no-package-manager after the download anyway. The gate only moves that verdict earlier. Verified across Debian 12, Ubuntu 24.04, Arch, Fedora 40 and openSUSE Leap: no false positive on a real deb host, correct on every repackaging host. The release is still reported, because the user does want to know 1.4.194 exists and to update through their distro; only the download path is closed. `externallyManaged` is an additive optional field on the existing `available` status, so older paired clients decode it unchanged. downloadUpdate() refuses authoritatively, since main owns this verdict rather than the card, and unwinds any pinned-build state first -- a Linux pinned jump resolves to 'release', and stranding isPinnedBuildActive would silently kill every background check for the rest of the process. Note the fix the issue suggests cannot work: electron-updater builds a PacmanUpdater whose doDownloadUpdate looks for a .pacman asset Orca does not publish, then dereferences undefined.
39d20cf
into
nwparker/linux-cli-launch-contract
ELI5
A PID-scoped orcad replacement can leave its detached terminal daemon alive, but a systemd service restart still kills every process in the service cgroup. The docs previously blurred those two operations and could lead an operator to destroy live agent work during an update.
What Changed
KillMode=mixedpreserves graceful teardown, not daemon or PTY survival.unverifiableinstead of treating it as an empty result.orca-ide; bareorcais only Orca's terminal-scoped shim, preserving the GNOME Orca screen reader command.Why
Replacing orcad through the built-in PID-owned deployment path and restarting a combined systemd unit have materially different process boundaries. Operators need that distinction before updating a host with live Claude Code, Codex, or OpenCode sessions.
Linked Issue
Refs #15956
Refs #5188
Visual Proof
N/A — documentation-only change; no rendered UI or interaction changes.
Testing
git diff --checkStack readiness evidence on the published rebased stack (main@212c0e42): 56 changed test files, 785 tests passed, and 4 platform-gated skips. Typecheck, reliability/max-lines/runtime-Electron ratchets, changed-code quality/React Doctor, formatting, oxlint, shellcheck, and
git diff --checkpassed. The full-suite control run had 7 failures in 3 untouched files: the zsh non-ASCII wrapper rename collision, the SSH host-key mock's missingssh2.utils, and a renderer context-menu failure seen only in the full run (the isolated test passed). The zsh and SSH failures reproduce on pristineorigin/main; fresh CI is running on the published heads.AI Disclosure
Review
PR 7 of 7, stacked on #17318. It is the final documentation contract for the restart procedure after the package handoff.
Agent skill upstream boundary
docs/reference/agent-skill-sharing-upstream-boundary.mdand copies or mechanically translates no upstream skill-installer source, tests, fixtures, registry entries, path tables, comments, or documentation.Notes
orcasymlink that could shadow the GNOME accessibility tool.Checklist
mainN/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)User-facing regressions
None. Documentation only — no code changes.
One documentation gap found in review and not fixed here: the
KillMode=mixedsection says the detached daemon is killed "when the stop completes", but never states that the stop itself blocks for systemd's default 90 secondTimeoutStopSecwhile live agent terminals keep the cgroup non-empty.grep -c TimeoutStopSecover the file returns 0. An operator who reads this, runs the documented upgrade script with several live terminals, seessystemctl stophang for 90s and assumes it wedged maykill -9the main PID mid-stop — which skips the state flush that this same document's migration guarantee depends on.Every other factual claim in the change was verified against code rather than comments: orcad's own restart calls
disconnectDaemon()and nevershutdownDaemon(); PID-scoped restart preserves PTYs; and the terminal-census fields (hostScope,omittedHostIds,truncated,totalCount) all exist with the documented "absent on older hosts" semantics.