Commit Graph

124 Commits

Author SHA1 Message Date
Maciej Lisiewski
41298d65a8 chore(deps): bump vite to 8.3.4
vite: 8.2.4 -> 8.3.4 (pins edited: 3; also: {})
2026-10-23 22:00:12 +02:00
Maciej Lisiewski
458b9dbafd chore(deps): bump react and react-dom to 19.3.0
react+react-dom: 19.2.7 -> 19.3.0 (pins edited: 9; also: {})
2026-10-23 22:00:12 +02:00
Maciej Lisiewski
0a37c00fe3 chore(deps): bump tw-shimmer to 0.4.13
tw-shimmer: 0.4.12 -> 0.4.13 (pins edited: 2; also: {})
2026-10-23 22:00:12 +02:00
Maciej Lisiewski
5b90561bfc chore(deps): bump tailwind-merge to 3.7.0
tailwind-merge: 3.6.0 -> 3.7.0 (pins edited: 3; also: {})
2026-10-23 22:00:12 +02:00
Maciej Lisiewski
00feafc79b chore(deps): bump radix-ui to 1.7.0
radix-ui: 1.6.7 -> 1.7.0 (pins edited: 2; also: {'@radix-ui/react-accessible-icon': "['1.1.15']->['1.1.16']", '@radix-ui/react-accordion': "['1.2.20']->['1.2.21']", '@radix-ui/react-alert-dialog': "['1.1.23']->['1.1.24']", '@radix-ui/react-arrow': "['1.1.15']->['1.1.16']", '@radix-ui/react-aspect-ratio': "['1.1.15']->['1.1.16']", '@radix-ui/react-avatar': "['1.2.6']->['1.2.7']", '@radix-ui/react-checkbox': "['1.3.11']->['1.3.12']", '@radix-ui/react-collapsible': "['1.1.20']->['1.1.21']", '@radix-ui/react-collection': "['1.1.15']->['1.1.16']", '@radix-ui/react-context-menu': "['2.3.7']->['2.3.8']", '@radix-ui/react-dialog': "['1.1.23']->['1.2.0']", '@radix-ui/react-direction': "['1.1.4']->['1.1.5']", '@radix-ui/react-dismissable-layer': "['1.1.19']->['1.1.20']", '@radix-ui/react-dropdown-menu': "['2.1.24']->['2.1.25']", '@radix-ui/react-focus-scope': "['1.1.16']->['1.2.0']", '@radix-ui/react-form': "['0.1.16']->['0.2.0']", '@radix-ui/react-hover-card': "['1.1.23']->['1.1.24']", '@radix-ui/react-label': "['2.1.15']->['2.1.16']", '@radix-ui/react-menu': "['2.1.24']->['2.1.25']", '@radix-ui/react-menubar': "['1.1.24']->['1.1.25']", '@radix-ui/react-navigation-menu': "['1.2.22']->['1.3.0']", '@radix-ui/react-one-time-password-field': "['0.1.16']->['0.1.17']", '@radix-ui/react-password-toggle-field': "['0.1.11']->['0.1.12']", '@radix-ui/react-popover': "['1.1.23']->['1.2.0']", '@radix-ui/react-popper': "['1.3.7']->['1.3.8']", '@radix-ui/react-portal': "['1.1.17']->['1.1.18']", '@radix-ui/react-presence': "['1.1.10']->['1.1.11']", '@radix-ui/react-primitive': "['2.1.10']->['2.1.11']", '@radix-ui/react-progress': "['1.1.16']->['1.1.17']", '@radix-ui/react-radio-group': "['1.4.7']->['1.4.8']", '@radix-ui/react-roving-focus': "['1.1.19']->['1.1.20']", '@radix-ui/react-scroll-area': "['1.2.18']->['1.3.0']", '@radix-ui/react-select': "['2.3.7']->['2.3.8']", '@radix-ui/react-separator': "['1.1.15']->['1.1.16']", '@radix-ui/react-slider': "['1.4.7']->['1.5.0']", '@radix-ui/react-slot': "['1.3.3']->['1.4.0']", '@radix-ui/react-switch': "['1.3.7']->['1.3.8']", '@radix-ui/react-tabs': "['1.1.21']->['1.1.22']", '@radix-ui/react-toast': "['1.2.23']->['1.2.24']", '@radix-ui/react-toggle': "['1.1.18']->['1.1.19']", '@radix-ui/react-toggle-group': "['1.1.19']->['1.1.20']", '@radix-ui/react-toolbar': "['1.1.19']->['1.1.20']", '@radix-ui/react-tooltip': "['1.2.16']->['1.3.0']", '@radix-ui/react-use-size': "['1.1.4']->['1.1.5']", '@radix-ui/react-visually-hidden': "['1.2.11']->['1.2.12']"})
2026-10-23 22:00:12 +02:00
Maciej Lisiewski
5d10f34e92 chore(deps): bump katex to 0.19.0
katex: 0.18.4 -> 0.19.0 (pins edited: 3; also: {'commander': "['8.3.0']->['15.0.0']"})
2026-10-23 22:00:12 +02:00
Maciej Lisiewski
19374ee0c9 chore(deps): bump @types/react-dom to 19.3.0
@types/react-dom: 19.2.3 -> 19.3.0 (pins edited: 3; also: {})
2026-10-23 22:00:12 +02:00
Maciej Lisiewski
67407d6cf5 chore(deps): bump @types/react to 19.3.0
@types/react: 19.2.17 -> 19.3.0 (pins edited: 4; also: {})
2026-10-23 22:00:12 +02:00
Maciej Lisiewski
417e5b0fe6 chore(deps): bump @tauri-apps/plugin-shell to 2.4.1
@tauri-apps/plugin-shell: 2.3.5 -> 2.4.1 (pins edited: 1; also: {})
2026-10-23 22:00:12 +02:00
Maciej Lisiewski
f098837c04 chore(deps): bump @tauri-apps/plugin-process to 2.4.0
@tauri-apps/plugin-process: 2.3.1 -> 2.4.0 (pins edited: 1; also: {})
2026-10-23 22:00:12 +02:00
Maciej Lisiewski
29fe335020 chore(deps): bump @tauri-apps/plugin-opener to 2.7.0
@tauri-apps/plugin-opener: 2.5.4 -> 2.7.0 (pins edited: 1; also: {})
2026-10-23 22:00:12 +02:00
Maciej Lisiewski
5a39ce6ce1 chore(deps): bump @tauri-apps/plugin-dialog to 2.8.1
@tauri-apps/plugin-dialog: 2.7.1 -> 2.8.1 (pins edited: 1; also: {})
2026-10-23 22:00:12 +02:00
Maciej Lisiewski
37d3d815d5 chore(deps): bump @tauri-apps/cli to 2.12.1
@tauri-apps/cli: 2.11.4 -> 2.12.1 (pins edited: 1; also: {'@tauri-apps/cli-darwin-arm64': "['2.11.4']->['2.12.1']", '@tauri-apps/cli-darwin-x64': "['2.11.4']->['2.12.1']", '@tauri-apps/cli-linux-arm-gnueabihf': "['2.11.4']->['2.12.1']", '@tauri-apps/cli-linux-arm64-gnu': "['2.11.4']->['2.12.1']", '@tauri-apps/cli-linux-arm64-musl': "['2.11.4']->['2.12.1']", '@tauri-apps/cli-linux-riscv64-gnu': "['2.11.4']->['2.12.1']", '@tauri-apps/cli-linux-x64-gnu': "['2.11.4']->['2.12.1']", '@tauri-apps/cli-linux-x64-musl': "['2.11.4']->['2.12.1']", '@tauri-apps/cli-win32-arm64-msvc': "['2.11.4']->['2.12.1']", '@tauri-apps/cli-win32-ia32-msvc': "['2.11.4']->['2.12.1']", '@tauri-apps/cli-win32-x64-msvc': "['2.11.4']->['2.12.1']"})
2026-10-23 22:00:12 +02:00
Maciej Lisiewski
1a8a71f3bd chore(deps): bump @tauri-apps/api to 2.12.2
@tauri-apps/api: 2.11.1 -> 2.12.2 (pins edited: 1; also: {})
2026-10-23 22:00:12 +02:00
Maciej Lisiewski
4980098a78 chore(deps): bump @nous-research/ui to 0.19.1
@nous-research/ui: 0.18.2 -> 0.19.1 (pins edited: 3; also: {})
2026-10-23 22:00:12 +02:00
Maciej Lisiewski
132d283966 fix(deps): bump katex 0.16.47 → 0.18.4 (low, GHSA-238p-pmpm-9mq7)
KaTeX < 0.18.2 lets existing prototype pollution bypass the `trust`
restriction; 0.16.x and 0.17.x get no fix. 0.18.4 is the newest release
that keeps commander ^8: 0.18.5+ requires commander 15 (Node >= 22.12),
which the website's declared Node >= 20 cannot install under
engine-strict. 0.18.11/0.19.0 also change strict-mode behaviour.

Bumps the direct pins in apps/desktop and apps/bootstrap-installer and
adds a `katex` override in the root and website projects so the ^0.16
consumers (rehype-katex, micromark-extension-math, @streamdown/math,
mermaid 11.16.1) share the fixed copy; mermaid's own move to ^0.18 was a
package.json-only change.

The only breaking changes in range are 0.17.0's internal
__defineFunction API (unused here) and 0.18.0's `katex-` prefix on 20
internal CSS classes (base, strut, tag, underline, ...). The repo
targets only `.katex*` selectors, ships KaTeX's own stylesheet, and
Streamdown runs the math plugin after its sanitizer, so nothing strips
or restyles the renamed classes. The prefix also stops the app's
Tailwind `.underline` rule from restyling KaTeX's internal underline
spans.
2026-10-22 00:53:44 +02:00
Maciej Lisiewski
ba9534c157 fix(deps): bump vite 8.2.0 → 8.2.4 (high, GHSA-587h-7wmj-h5pm)
vite 8.2.4 bundles launch-editor fixes for GHSA-587h-7wmj-h5pm,
GHSA-r825-w8mm-5pxw and GHSA-698v-4r3x-3vcv. Bumped in all three
workspaces that pin it (web, apps/desktop, apps/bootstrap-installer),
leaving one hoisted copy.

Forced by vite 8.2.4's ranges:
- rolldown ~1.2.4: 1.2.1 → 1.2.13 (@oxc-project/types =0.153.0)
- postcss ^8.5.26: root override 8.5.23 → 8.5.29; website lock moved
  to the same 8.5.29

The .npmrc age-gate excludes for vite/rolldown/@rolldown/*/@oxc-project
were marked "remove once vite 8.2.0 is > 2wks old" (it is 82 days) and
let a same-day rolldown 1.2.15 into the lock, so they are removed; every
version above is past the 14-day gate. The website postcss exclude
("remove when 8.5.23 is > 2wks old") is removed for the same reason.
2026-10-21 21:14:06 +02:00
Teknium
bb35d7a282 fix(install): a rerun keeps an install on the update channel it chose (#137714)
Hermes-Setup and install.sh/install.ps1 reruns switched every existing
checkout to the installer's branch (Hermes-Setup bakes `main`), so an
install the user had set to `stable` landed on main while config.yaml
still said stable, and the next check offered the release as an update.

A checkout whose config.yaml record names a non-main channel now keeps
its position (`hermes update` owns moving it); an explicit --commit pin
still outranks the choice, and installs with no record or `main` keep
the plain branch behaviour. Hermes-Setup's update mode also forwards the
`--channel` the Desktop checked against instead of dropping it for
`--branch main`.
2026-10-13 04:42:06 -07:00
Teknium
51044e75e3 fix(update): the Rust installer honours HERMES_DATA_DIR_SUFFIX for the default home and marker root (review F13)
What: platform_default_home() appends HERMES_DATA_DIR_SUFFIX literally to the hermes/.hermes leaf via platform_default_home_with(suffix), which fixes hermes_home(), hermes_root() and the update marker together.
Why: Python (_get_platform_default_hermes_home) and Desktop (platformDefaultHermesHome) both append it, so a hermes-setup launched in a suffix-only channel environment read and wrote the unsuffixed home and marker.
Red: paths::tests::data_dir_suffix_names_the_default_home_and_its_marker_root on the 0ec53574011 resolution (byte-verbatim extract, suffix ignored): left '.hermes' right '.hermes-channel-build-x'.
Green: passes on the real fixed source extract; also cargo check clean for x86_64-pc-windows-msvc (Tauri crate itself cannot build on this host).
2026-10-06 04:36:02 -07:00
Teknium
fc7d24650d fix(update): an exited Windows owner with exit code 259 is dead, not running forever (review F10)
What: the Windows pid_is_alive opens the process with SYNCHRONIZE and returns WaitForSingleObject(h, 0) == WAIT_TIMEOUT; access denied still reads alive via liveness_from_open_error.
Why: GetExitCodeProcess == STILL_ACTIVE (259) is also what a process that exited with code 259 reports while any handle keeps its object, and its creation time still matches the v2 marker, so Busy had no age bound. Python's _early_recovery already uses the wait probe.
Red: Windows-only; marker_tests::pid_is_alive_false_for_an_exited_process_whose_exit_code_is_259 (cfg(windows)) needs a native runner.
Green: cargo check --tests --target x86_64-pc-windows-msvc clean on the real marker.rs (std-only harness); Linux marker tests 49 passed.
2026-10-06 04:36:02 -07:00
Teknium
e0cd07ee43 fix(update): tmp litter under our own reused pid number is reclaimed once stale (review PID-reuse-tmp-sweep)
What: the Python and Rust tmp sweeps reclaim a tmp sibling named for our own pid once its mtime is older than 60 s (OWN_PID_TMP_STALE[_SECONDS]); other pids keep the liveness check, and an ASCII pid past u32 is dead in both (Python had kept it since N06; Rust always swept it).
Why: with deterministic container pids a previous holder of our pid number left a tmp that every later run skipped as 'our own in-flight write', so it was never cleaned. Every write of ours finishes far inside 60 s, so a fresh same-pid tmp is still kept.
Red: test_stale_tmp_under_our_own_pid_number_is_reclaimed FAILED and marker_tests::stale_tmp_under_our_own_pid_number_is_swept FAILED on 07c014355b5 (real marker.rs via a std-only harness; the Tauri crate cannot build here without webkit2gtk/dbus).
Green: both pass; test_update_lock.py 59 passed/1 skipped; marker tests 49 passed/2 ignored.
2026-10-06 04:36:02 -07:00
Teknium
b2d3c7d3f0 fix(update): a completion child the job refused holds its own checkout lease (review R5b)
What: every Windows process that joins its ancestor's checkout lock also locks one of 16 lease bytes
past the owner's byte, taken while the owner is seen alive; _try_lock/checkout_lock_held and the Tauri
marker probe treat any held lease as a held lock. The refused completion child still runs (D2: a
committed update never fails) but is no longer unfenced.
Why: a child outside the kill-on-close job outlived a killed owner, whose msvcrt lock died with it,
so a contender acquired while the child still wrote.
Red/green: Windows-native cells (Python owner-killed/unbound child; Rust held lease) need a native run;
POSIX paths unchanged (update_lock suites pass, same failure set as base).
2026-10-06 04:36:02 -07:00
Teknium
3126c6eb34 fix(installer): reject POSIX marker PIDs that narrow to process groups 2026-10-06 04:36:02 -07:00
Teknium
7d257fb619 fix(update): the Tauri updater never reclaims a dead marker while the checkout lock is held (R6)
UpdateMarkerGuard::acquire now takes the install root. Under the marker mutex, a dead marker is
kept (never compare-and-deleted) while the install's checkout kernel lock is held, mirroring
hermes_cli/update_lock.py: checkout_lock_path (common git dir or <root>/.hermes-update.lock) and
checkout_lock_held (POSIX flock probe; Windows LockFileEx on the byte at 1<<20 that msvcrt locks).
The refusal is Busy with a held owner (pid 0), and busy_update_message says the owner exited but a
process it started still holds the checkout. should_heal_self_marker_refusal no longer heals an
exit 2 while the checkout lock is held.
2026-10-06 04:36:02 -07:00
Teknium
8c6e02c1ac fix(bootstrap-installer): marker liveness and overflow parity with Python (access denied = alive; corpus overflow cases)
Windows pid_is_alive treated every OpenProcess failure as dead, including
ERROR_ACCESS_DENIED for an elevated / other-user updater, while Python's
_early_recovery._pid_is_running calls it alive (racing an elevated updater is
worse than postponing). The decision is now the pure
liveness_from_open_error(GetLastError()): access denied = alive, any other
failure = dead. The creation-time probe still returns None for such a pid, so
the combined verdict equals _identity_live: live only within the v1 age
ceiling of started_at.

The new oversized-numeric corpus cases already pass in Rust (u32/u64 parse
failure = malformed, saturating age, +inf ct never matches); unit tests now pin
the started_at = u64::MAX age (0, no overflow) and the +inf ct explicitly.
2026-10-06 04:36:02 -07:00
Teknium
86afd649c3 fix(update): own-incarnation check never probes our own pid
Release now judges the marker by identity, and the identity check sent
os.kill(own_pid, 0) on every release. Our pid is alive by definition; only
the incarnation (5 ms ct) is in question. Same short-circuit in marker.rs.
2026-10-06 04:36:02 -07:00
Teknium
a66193a8c7 fix(update): A7 marker mutex, one incarnation rule, delegate-aware release, checkout custody
R3 / A7 rule 1: every marker decision-and-mutation (reclaim of a dead claim,
adopt + delegate append, release, ownership hand-over) now runs while holding
the kernel lock on the never-deleted sidecar `<marker>.lock` (POSIX flock;
Windows: the file opened share-none, the same lock the PowerShell hand-off
takes), bounded to 10 s. Only the exclusive first publish stays lock-free
(rule 2). Python (update_lock.marker_mutex) and Rust (marker.rs lock_marker)
interoperate on the same lock. A stale reader paused before its unlink can no
longer delete a claim published after its read.

A7 rule 4 / R12: one incarnation rule. Our own pid is ours only within 5 ms of
our creation time; a no-ct claim naming our pid is a previous incarnation
(dead) — in Python (`update_lock.incarnation_live`, exported for the pause
record) and in marker.rs (no more 2 s self tolerance; Electron's v1 own-pid
pre-write is reclaimed and republished as v2; the exit-2 heal requires our
exact incarnation).

A7 rule 5: release is identity-based (`_release_decision` / `release_decision`).
The owner removes its claim regardless of delegate lines unless a LIVE
delegate other than itself exists, which then inherits the claim (rewritten
with the delegate as owner, started_at and run lines kept). A delegate drops
its line while the owner lives, else deletes. This is the native Windows
`orphaned_update` root cause: the hand-off script named `hermes update` as
delegate before it claimed, the child adopted without writing, and its exit
released nothing, leaving '<dead owner> ... delegate:<exited child>'.

Parser (A7 rule 7): lines 4+ are tagged — first well-formed delegate line,
every `run:<id>` line; pid must fit u32. Both consumers run
tests/fixtures/update_marker_corpus.json (judge + release cases).

R2: checkout mutators keep custody. `_git_run` passes the held checkout lock
fd to git (and its hooks); `run_source_script` passes it to the Node build;
`complete_source_checkout` ACQUIRES `UpdateLock(install_root=root)` instead of
claiming only its home's marker; venv_sync's interrupted-update finish acquires
the checkout lock before mutating instead of sampling it and hands the fd to
its completion child; the historical takeover chain passes it down. On Windows
a child of the update joins the lock when its holder record names a live
ancestor (it runs in that owner's kill-on-close job).

R11: a live pre-root-marker claim under <root>/profiles/*/ (the old per-profile
marker) is observed: a new update refuses while one is live and not a partner.

Real-process tests: tests/hermes_cli/test_update_lock_protocol.py (each fails on
6ff4055cd74), corpus consumers in Python and cargo.
2026-10-06 04:36:02 -07:00
Teknium
0a8e2f950a fix(bootstrap-installer): marker claim, parse and liveness follow the LP-LOCK r2 contract
The Rust updater now applies the same marker rules as hermes_cli/update_lock.py:

- A2 parse: one BOM and one trailing CR per line are dropped, spaces/tabs
  trimmed; lines 1-2 must be ASCII digits (fractional/garbage => malformed,
  dead, compare-and-deleted); line 3 is `ct:` or a v1 marker; only line 4
  can be `delegate:<pid> ct:<ct>`.
- A1 liveness: a live pid whose creation time cannot be read gets the v1
  20-minute ceiling instead of an unbounded pass. The ct probe is injected
  so the rule is unit-testable.
- A3 claim: the body is written and fsynced in a `<marker>.<pid>.<n>.tmp`
  sibling and published with an exclusive hard link (fallback: create_new);
  a 0-byte marker younger than 5 s is a claim in flight (live, never deleted).
- M1: an own-pid v1 pre-write (Electron) is CAS-upgraded to v2 with our
  creation time, lines 1-2 byte-identical, and released by complete().
- m8: a marker that cannot be written refuses the update with a clear
  message instead of running unclaimed (AcquireError::{Busy, Unwritable}).
- m10: dead claimants' tmp siblings are swept at claim time.
2026-10-06 04:36:02 -07:00
Teknium
dfb33c107c refactor(bootstrap-installer): move the update marker into marker.rs
Pure move of UpdateMarkerGuard, the marker parse/liveness/compare-and-delete
helpers, the exit-2 self-heal decision and their tests out of update.rs
(2514 lines) into a new marker module. No behaviour change; update.rs now
imports the guard and the heal decision from crate::marker.
2026-10-06 04:36:02 -07:00
Teknium
e267537a75 fix(bootstrap-installer): update marker v2 — root home, creation-time liveness, atomic claim
UpdateMarkerGuard now implements update-marker contract C1:
- marker lives under the profile-tree root (paths::hermes_root), never profiles/<p>
- body pid / started_at / ct:<creation time>; GetProcessTimes on Windows,
  /proc stat on Linux, proc_pidinfo on macOS
- an owner is live iff its pid is alive and its creation time matches (2.0 s);
  no age ceiling for v2 markers, the 20-min ceiling only ages out v1 markers
- claim is create_new + sync_all with one compare-and-delete reclaim of a dead owner
- every delete is compare-and-delete; a live line-4 delegate keeps the marker live

Why: a 20-min ceiling reclaimed live owners mid-update, a reused Windows pid held
the gate, and read-then-write claims let two updaters run at once.
2026-10-06 04:36:02 -07:00
ethernet
383916b845 feat(icons): layered macOS 26 icon for the bootstrap installer and the DMGs
Tauri's bundler (cli 2.11.4) compiles an Icon Composer package listed in
bundle.icon into Assets.car with actool >= 26 and sets CFBundleIconName, so
the bootstrap installer gets an unbranded twin of the desktop package under
src-tauri/icons/icon.icon (generator target; the bundle stays the plain
brand because flavours only apply under apps/desktop/). Tauri only logs when
actool is too old, so the macOS job selects Xcode 26 and the verify step
asserts Assets.car and the plist key are in the built .app.

The desktop DMG's volume icon defaulted to the packager's icns, which is
actool's 256px fallback whenever mac.icon is the .icon package; point
dmg.icon at the full-resolution assets/icon.icns. Tauri's DMG already takes
--volicon from the bundle's .icns, which the regenerated outputs cover.
2026-10-02 10:33:44 -04:00
ethernet
c2b69de66d feat(icons): drop the brand ring everywhere and frost the mono icon
Next to macOS 26's own icons the flat plate + girl reads better than the
ringed tile, so the ring is off in every output: the tiles' inward stroke,
the layered icon's border layer and its targets. BORDER_ENABLED keeps the
ring code one flag away.

Without a ring the girl's lowest nodes are dragged past the tile edge
(EDGE_OVERSHOOT) so the outline crops her instead of leaving a gap.

Clear light/dark and Tinted light/dark now come from one grayscale mono
layer with Liquid Glass on: the parts of the girl that are black in light
mode become a near-black frosted ink (0.13 @ 90%), her white parts stay
white, each pixel painted exactly once so materials never stack. The art
layer hides under "tinted" and the mono layer shows only there.

Mac girl at 1.06x (between main's 1.12x and the layers' 1.0x), for the icns
and the layered icon alike. Chosen from a six-appearance matrix of real
IconServices renders next to Finder.
2026-10-02 10:33:44 -04:00
Brooklyn Nicholson
0590ab25fe fix(marker): zombie-aware stale-marker self-heal parity across all readers
Rust live_marker_owner now REMOVES a stale marker (dead pid, past ceiling,
unparseable) on read — previously stale bytes were only ignored, so a crashed
updater whose Drop never ran refused every later acquire until the 20-minute
ceiling (#77259). pid_is_alive gains pid-0 and zombie handling (Linux /proc
state, macOS ps stat), closing the kill(pid,0) false-positive that kept a
dead-but-unreaped updater 'live'.

Python _pid_is_running gains the same zombie awareness via a new
_process_state probe (Linux /proc, macOS ps), which read_live_update inherits
through update_lock._pid_alive — so the CLI gate self-heals a zombie-owned
marker in seconds instead of 20 minutes (#120635, #125932).

Electron readLiveUpdateMarker consults a new posixProcessState probe
(injectable, fail-open to the signal-0 verdict) so the desktop boot gate no
longer parks on a zombie-owned marker.

Rust fix cherry-picked from #77885 (authorship kept); Python and Electron
are new parity work.
2026-09-29 20:57:17 -05:00
webtecnica
0ca79e3602 fix(installer): self-heal stale update marker after crash (#77259) 2026-09-29 20:57:17 -05:00
teknium1
07be7d47ed fix(bootstrap-installer): write the shared receipt schema and resolve the commit without git
Hermes-Setup.exe replaced install.ps1's .hermes-bootstrap-complete with its
own copy: completedAtUnix instead of the completedAt every other writer and
reader uses (install.ps1, Electron main, hermes_cli/source_stamp.py,
scripts/verify-bootstrap-version-stamp.py), and a pinnedCommit from a bare
`git rev-parse HEAD`, which is null on a machine where git exists only as
the PM-staged binary install.ps1 uses.

The receipt now carries completedAt (UTC ISO-8601, milliseconds), and the
commit resolves like install.ps1's Stage-Complete: the pinned commit, else
the checkout HEAD read from its ref files (loose ref or packed-refs), else
the full sha install.ps1 already recorded (read BOM-tolerant).

Fixes #124949
2026-09-27 03:35:26 -07:00
Hermes Agent
5ef8d96554 fix(bootstrap-installer): resolve linux-arm64-unpacked desktop builds (#94703)
resolve_hermes_desktop_exe and the update lock probe only knew the x64
linux-unpacked dir, so on ARM64 Linux the bootstrap installer could not
find the rebuilt app to relaunch and did not wait for the running app's
app.asar before an update. Add linux-arm64-unpacked to both lists.
2026-09-26 20:29:47 -05:00
Hermes Agent
c8094dc399 fix(icons): put the dev Dock icon on the mac grid and enlarge the mac art
Dev runs replace the Dock icon with public/apple-touch-icon.png, which the
generator rendered full-bleed, so it drew ~24% larger than its Dock
neighbors. Render it from the mac-grid master like the icns targets.

On the 824 grid the plate matches peers, but the girl inside a white tile
with a ring read small; scale her 1.12x about the plate center for every
mac target.
2026-09-26 18:10:54 -05:00
brooklyn!
e726b79803 fix(desktop): stop macOS launch from showing two Dock icons
The setup launcher had no LSUIElement, and its already-installed hand-off
ran after Tauri/AppKit, whose default activation policy is Regular. That
registered the setup bundle as a second Dock app beside the real desktop.
Hand off before constructing Tauri, and restore Regular activation only
when the installer UI is actually shown.

On macOS the Electron single-instance lock also ran before deep-link
registration. setAsDefaultProtocolClient relaunches the app through Launch
Services, so the loser already had a Dock icon by the time the lock failed
and app.exit(0) ran. Register the protocol first. The lock-losing instance
still hard-exits before ready.

Fixes #73151
2026-09-25 01:01:42 -05:00
ethernet
7b11c1bcac Merge pull request #122025 from NousResearch/fix/bootstrap-no-stale-script
fix(bootstrap-installer): never use a cached install script
2026-09-24 23:50:11 -04:00
ethernet
274b412aa7 fix(bootstrap-installer): never reuse a downloaded install script
Every bootstrap downloads the script fresh, commit pins included; the
on-disk file is only the -File target for this run. Removes the reuse
path, ScriptSource::Cached and the in-place BOM upgrade of old caches.
2026-09-24 19:28:21 -04:00
ethernet
0e7d560d6b fix(bootstrap-installer): never run a stale install script for a branch pin
A 429 from raw.githubusercontent.com made the installer fall back to a
cached pre-migration install-main.ps1. Its repository stage then
fast-forwarded the checkout to live main, whose lock only supports
Python >=3.14, so the old script's 3.11 venv got no core dependencies
and every install died at 'Baseline imports failed'.

The checkout follows the live branch, so the script must too: a failed
refresh of a mutable pin is now fatal (Retry re-downloads). Immutable
commit pins keep permanent cache reuse.
2026-09-24 19:26:32 -04:00
ethernet
4b7229d612 fix(icons): commit generated icons; installs and regular builds never render
User installs failed with 'resvg-py is missing' because the web/desktop
source builds rendered icons on whatever python was on PATH. The default
brand outputs are now committed; source_build, apps/desktop build.mjs and
the npm/docusaurus pre-hooks consume them directly. Flavored release
bundles (canary/commit) still render into their own product dir.

icons-freshness-check now regenerates and fails on any byte diff.
2026-09-24 19:17:34 -04:00
ethernet
7dd4d7556c test(installer): drop retired Windows venv path assertions 2026-09-24 05:10:06 -04:00
ethernet
ca06a8dec9 Merge remote-tracking branch 'origin/main' into ethie/pm-clean
# Conflicts:
#	apps/bootstrap-installer/src-tauri/src/update.rs
2026-09-24 05:03:23 -04:00
brooklyn!
edecebf69d fix(bootstrap): show the update child's exit-2 refusal instead of "still running"
Every exit 2 from `hermes update` was reported as "Hermes is still
running. Close all Hermes windows", including when the holder was another
live update. The child prints the specific refusal as a ✗ block right
before exiting; keep a bounded stdout tail and show that block, falling
back to the generic text only when none was captured.

Co-authored-by: RelaxJonh <92573950+RelaxJonh@users.noreply.github.com>
2026-09-24 03:49:06 -05:00
ethernet
9cc319f9a1 feat(version): main carries 0.0.0 and dev distance counts from release tags
The committed version is a placeholder now; a build stamps the real one.
Dev installs report their distance from the highest reachable release tag,
so an -rc claim sitting on the same commit never becomes the version.
2026-09-21 20:41:59 -04:00
ethernet
d87d134564 chore: bump version to v1.0.0 (2026.9.21) 2026-09-21 13:15:16 -04:00
ethernet
7bc32b575f chore: bump version to v0.22.2 (2026.9.21) 2026-09-21 13:09:52 -04:00
ethernet
dcd40f61a4 chore: bump version to v0.22.1 (2026.9.21) 2026-09-21 13:09:36 -04:00
ethernet
483b46f7e3 chore: bump version to v0.22.0 (2026.9.21) 2026-09-21 13:08:31 -04:00