Repository navigation
Conversation
Co-authored-by: sisyphus-dev-ai <[email protected]>
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 2 minutes. View limit details
No actionable comments were generated in the recent review. Summary
Merge Risk:
|
Co-authored-by: sisyphus-dev-ai <[email protected]>
Co-authored-by: sisyphus-dev-ai <[email protected]>
|
Review round (omo + Codex):
|
…ide the screen's server closure
|
@coderabbitai review |
Action not completed
|
|
CodeRabbit reviewed the first head (no actionable comments) and is rate limited for the later commits: it did not review head 51d3d08. That head passed check fast in the CI runner image (28400 pass, 0 fail) and every CI check; the review round's findings are listed above. |
|
Merged into #5153 (same area, one PR for the 0.5.14 beta). Its commits, review notes and screenshots carry over there. |
…logout, and date agent states from the core (#5153) Bundles herdr-core 0.1.23 in the desktop app and the Settings installer, and adopts two facts 0.1.23 reports. #5158 is merged into this branch (same area, one PR for the 0.5.14 beta). ## 1. herdr-core 0.1.23 (was 0.1.17) - `app/electron/scripts/runtimes.ts`, `server/herdr-core/install.ts`: version and SHA-256 per target, from `releases.herdr.dev/core/0.1.23/manifest.json`. - CI's herdr-core live contract runs 0.1.23 too (0.1.17 and 0.1.18 stay; nothing removed). - `scripts/hc-schema.json` and `server/herdr-core/hc-api.generated.ts` regenerated from 0.1.23's `hc schema`, run against an isolated core (`hc schema` answers for the session's running core). - The fake core follows 0.1.23's stop: it sends the terminal's `finished` event and the attach CLOSE apart, in either order (0.1.18 always closes first). The live stop test compares them unordered and still requires both before the line ends; it failed 7 of 30 runs on 0.1.23 before, 30/30 after. - Docs, THIRD_PARTY_NOTICES and a changelog fragment name 0.1.23. ### macOS packaging: the standalone `herdr-core`, not `Herdr Core.app` Since 0.1.18 hc's macOS archive holds both `Herdr Core.app` and a standalone `herdr-core`. The app keeps shipping the standalone one: 1. Nothing new for the user to see: no second app, and the core stays where it is (the app's data folder), not hc's shared `~/.local/share/herdr-core`, which `hc update --from <.app>` would also switch for a user's own `hc`. 2. Signing and notarization stay as they are: the build re-signs `ovis/bin/herdr-core` with the app's identity, while `Herdr Core.app` must keep Herdr's own signature (hc refuses another team's) and would need a `signIgnore` carve-out. 3. App updates work as today: `installCore` runs `hc update --from <bundled herdr-core>`, which hc keeps supporting for non-bundled installs, and the running core moves to 0.1.23 with its terminals kept. Trade-off: programs in Ovis's terminals do not get Herdr Core's own macOS privacy identity (same as today). Linux ships the same single `herdr-core`; Windows the same `herdr-core.exe` with `conpty\` beside it. ## 2. Programs stop at logout (hc 0.1.21+) hc reports `keeps_running_after_logout` and `logout_linger_user` in `hello`, `server.status` and `machine.list`. When a core says `keeps_running_after_logout: false` (systemd ends the user's programs when the account's last login ends), the PC's name gets a small warning mark where it is already shown (the sidebar's PC header, or with a single PC the desktop status bar and the phone top bar); its tooltip, and the PC menu's description, give the command that fixes it (`sudo loginctl enable-linger -- <user>`). No new rows, buttons or blocks. Older cores leave the fields out and nothing shows; a failed refresh keeps the last answer. ## 3. Agent state ages from the core (hc 0.1.23) Status events and terminal records carry `status_ms`, the time the agent's status last changed. The agent list and the inbox already show "since when"; they now prefer the core's time when it describes the same state Ovis shows, so the age survives an Ovis server restart. For another machine only when both this PC's hc and that machine's are 0.1.23+ (an older relaying hc keeps the first timestamp). States Ovis infers itself (background waits, Antigravity's plan review) keep Ovis's own timer. Contract changes are additive: optional `logout_warning` on `SessionSnapshot` and `Machine`, optional `core_status_time` on `HerdrPane` and the `pane-status` frame. ## Checks - Linux, isolated core: `installCore` with a running 0.1.17 core and a live terminal, then with 0.1.23: `restarted: true`, same core id, 0.1.23, the terminal still live. - macOS (eamac, fresh clone, Developer ID signed build, not notarized: no notary key there): the app's `ovis/bin/herdr-core` says `hc 0.1.23` and is signed by the app's team; `codesign --verify --deep --strict` passes; no `.app` inside Resources. The same 0.1.17 -> 0.1.23 update keeps the terminal, writes no `bundle-upgrade-notice` and makes no `~/.local/share/herdr-core`. - Windows (winvm, desktop session): checksums match; the app's install layout with 0.1.17, then `update --from` 0.1.23: same core id, terminal kept, `conpty\` kept, a new PowerShell terminal answers. - Regression tests that fail on main: the stop order (both versions), the logout warning and status-time gating (local hc 0.1.22 + remote 0.1.23, single-PC layouts, first-load clock, Antigravity plan review). - Review round: omo + Codex on both parts; their MEDIUMs are fixed (details in the comments here and on #5158). - UI: before/after screenshots (desktop 1280, phone 390, several PCs and one PC) are with the lead. --------- Co-authored-by: sisyphus-dev-ai <[email protected]>
What
Two facts herdr-core now reports, shown where Ovis already shows PCs and agent ages. No new rows, buttons or blocks.
keeps_running_after_logoutandlogout_linger_userinhello,server.statusandmachine.list. When a core sayskeeps_running_after_logout: false(systemd ends the user's programs when the account's last login ends), the PC's name gets a small warning mark where it is already shown (the sidebar's PC header, or with a single PC the desktop status bar and the phone top bar); its tooltip, and the existing PC menu's description, give the one command that fixes it (sudo loginctl enable-linger -- <user>). Older cores leave the fields out and nothing shows.status_ms, the time the agent's status last changed, also for other machines. The agent list and the inbox already show "since when"; they now prefer the core's time when it describes the same state Ovis shows, so the age survives an Ovis server restart. Otherwise (older cores, states Ovis infers itself, background waits) the existing stamp stays.Contract changes are additive: optional
logout_warningonSessionSnapshotandMachine, optionalcore_status_timeonHerdrPaneand thepane-statusframe.UI change: waits for the maintainer's look (before/after screenshots from the demo, desktop 1280 and phone 390, light theme, are with the lead).
Checks