Skip to content

The agent that grows with you

Merge remote-tracking branch 'origin/main' into ethie/pm-clean

ethernet9824294c8b7e
diff --cc hermes_cli/main_desktop.py
index ba716d3e070,9dd6addecf7..52e32a1c140
--- a/hermes_cli/main_desktop.py
+++ b/hermes_cli/main_desktop.py
@@@ -99,9 -129,20 +115,13 @@@ def _desktop_build_needed(desktop_dir:
print(f" ⚠ A previous update left the desktop bundle incomplete ({dist_dir}); rebuilding it")
return True
+ if not source_mode and dist_dir is not None and _packaged_node_pty_missing(dist_dir):
+ print(" ⚠ The packaged desktop app has no node-pty native binary; rebuilding it")
+ return True
+
- return not _stamp_is_current(
- _desktop_stamp_path(), lambda: _compute_desktop_content_hash(project_root), sourceMode=source_mode
- )
-
+ from hermes_cli.source_build import source_product_current
-def _write_desktop_build_stamp(project_root: Path, *, source_mode: bool) -> None:
- """Write the desktop build stamp after a successful build."""
- _write_build_stamp(
- _desktop_stamp_path(), "desktop",
- lambda: _compute_desktop_content_hash(project_root), sourceMode=source_mode)
+ return dist_dir is None or not source_product_current(project_root, "desktop", dist_dir)
def _desktop_packaged_executable(desktop_dir: Path) -> Optional[Path]: