hermes-agent/hermes_cli
brooklyn! 529ee80ac0
Recover from a half-replaced desktop bundle instead of requiring a reinstall (#85887)
* fix(desktop): load the intact renderer bundle when an update tears one copy

index.html and the hashed chunks it names are one generation. A packaged app
ships that bundle twice (inside app.asar and, via asarUnpack, beside it in
app.asar.unpacked), so an update that replaces the app while its files are
locked can leave the two copies from different generations. resolveRendererIndex
took the first index.html that existed, so it could pick the torn one and the
window died on its first lazy import with "Failed to fetch dynamically imported
module" -- with no way out, because every relaunch reloaded the same copy.

Check each candidate's declared modules and prefer a complete generation; when
both are torn, log which files are missing and how to repair instead of leaving
the crash unexplained.

* fix(cli): rebuild the desktop app when its renderer bundle is half-replaced

The content stamp hashes the SOURCE tree, which an interrupted update leaves
intact, so `hermes desktop` reported "up to date" and skipped the rebuild that
would repair a torn bundle -- the app relaunched into the same crash and
reinstalling looked like the only option.

Treat a bundle whose index.html names missing chunks as stale regardless of the
stamp, and say so on the way into the rebuild.
2026-08-14 02:21:20 -05:00
..
dashboard_auth fix(plugins): isolate ownership by profile 2026-08-12 19:13:32 -07:00
data feat(plugins): community plugin index + hermes plugins search (#64181) 2026-08-12 18:52:08 -07:00
observability
…
proxy
…
subcommands feat(plugins): plugin packs — declarative, shareable plugin sets (#64166) 2026-08-12 19:56:44 -07:00
web_routers feat(computer-use): provision cua-driver at install time and on toolset enable 2026-08-13 02:44:48 -07:00
__init__.py chore: release v0.20.1 (2026.8.13) 2026-08-13 11:52:47 -07:00
_early_recovery.py
…
_parser.py
…
_scan_venv_blockers.py
…
_startup_fast.py
…
_subprocess_compat.py fix(hooks): kill the whole process tree when a shell hook times out 2026-08-12 19:44:04 -07:00
active_sessions.py
…
agent_import.py
…
agent_plugins.py
…
approval_mode.py
…
approval_transport.py
…
approvals_suggest.py
…
approvals_test.py
…
auth.py fix(auth): tolerate legacy Codex suppression data 2026-08-12 23:47:38 -07:00
auth_commands.py
…
azure_detect.py
…
backup.py
…
bang_shell.py
…
banner.py
…
blueprint_cmd.py
…
browser_connect.py
…
build_info.py
…
bundles.py
…
callbacks.py
…
checkpoints.py
…
claw.py
…
cli_agent_setup_mixin.py fix: restore session model on resume instead of falling back to config default 2026-08-14 02:15:22 +05:30
cli_billing_mixin.py
…
cli_commands_mixin.py fix: restore session model on resume instead of falling back to config default 2026-08-14 02:15:22 +05:30
cli_output.py
…
clipboard.py
…
codex_models.py
…
codex_runtime_plugin_migration.py
…
codex_runtime_switch.py
…
colors.py
…
commands.py Revert "Inspired by Perplexity Computer: Model Council mode for Mixture of Agents" 2026-08-12 21:50:35 -07:00
completion.py
…
config.py fix: follow-up polish for salvaged PR #85512 2026-08-14 00:59:38 +05:30
config_defaults.py fix(models): ETag conditional GET, no-network hot-path invariant, mirror URL override for models.dev catalog 2026-08-14 03:31:22 +05:30
config_migrations.py
…
console_engine.py
…
container_boot.py
…
context_switch_guard.py
…
copilot_auth.py
…
credential_lifecycle.py
…
cron.py
…
curator.py
…
curses_ui.py
…
dashboard_procs.py
…
dashboard_register.py
…
debug.py
…
default_soul.py
…
dep_ensure.py fix(cli): teach doctor --live and dep_ensure the npx agent-browser cascade 2026-08-13 02:38:28 -07:00
diagnostics_upload.py
…
dingtalk_auth.py
…
doctor.py fix(browser): pin npx agent-browser resolution and share a sentinel constant 2026-08-13 02:38:28 -07:00
doctor_live.py fix(cli): apply Termux carve-out to doctor --live's npx browser probe 2026-08-13 02:38:28 -07:00
dump.py
…
env_loader.py fix(plugins): isolate ownership by profile 2026-08-12 19:13:32 -07:00
fallback_cmd.py
…
fallback_config.py
…
focus_view.py
…
gateway.py
…
gateway_enroll.py
…
gateway_windows.py
…
goals.py
…
gui_uninstall.py
…
heartbeat.py
…
hooks.py feat(langfuse): widen tracing to errors, sessions, subagents, and MoA fan-out 2026-08-13 23:10:16 +05:30
init_command.py
…
input_sanitize.py
…
inventory.py
…
journey.py
…
kanban.py feat(kanban): explicit notify/wake delivery modes with faithful wake session routing 2026-08-13 10:47:40 -07:00
kanban_db.py feat(kanban): GC stale done-task notify subscriptions 2026-08-13 12:21:04 -07:00
kanban_decompose.py
…
kanban_diagnostics.py
…
kanban_specify.py
…
kanban_swarm.py
…
lifecycle.py
…
linux_desktop_entry.py
…
logs.py
…
main.py Recover from a half-replaced desktop bundle instead of requiring a reinstall (#85887) 2026-08-14 02:21:20 -05:00
managed_scope.py
…
managed_uv.py
…
mcp_catalog.py
…
mcp_config.py
…
mcp_picker.py
…
mcp_security.py
…
mcp_startup.py
…
mem_trim.py
…
memory_oauth.py
…
memory_setup.py feat(hindsight): memory provider improvements — recall_sync, retain_source, setup templates, memory indicators, error hints 2026-08-13 23:15:25 +05:30
middleware.py
…
migrate.py
…
moa_cmd.py Revert "Inspired by Perplexity Computer: Model Council mode for Mixture of Agents" 2026-08-12 21:50:35 -07:00
moa_config.py Revert "Inspired by Perplexity Computer: Model Council mode for Mixture of Agents" 2026-08-12 21:50:35 -07:00
model_catalog.py
…
model_cost_guard.py
…
model_normalize.py
…
model_search.py
…
model_setup_flows.py fix(models): refresh xAI picker via models.dev; pin grok-4.6 2026-08-13 22:09:50 -07:00
model_switch.py fix(models): ETag conditional GET, no-network hot-path invariant, mirror URL override for models.dev catalog 2026-08-14 03:31:22 +05:30
models.py fix(models): refresh xAI picker via models.dev; pin grok-4.6 2026-08-13 22:09:50 -07:00
nous_account.py
…
nous_auth_keepalive.py
…
nous_billing.py
…
nous_subscription.py fix(cli): restore managed-node-path and PATHEXT-aware fallback rungs 2026-08-13 02:38:28 -07:00
npm_engine.py
…
onepassword_secrets_cli.py
…
oneshot.py
…
pairing.py
…
partial_compress.py
…
personality.py
…
pets.py
…
platform_actions.py feat(plugins): capability-gated ctx.platform_actions facade (#64176) 2026-08-12 20:10:51 -07:00
platforms.py
…
plugin_capabilities.py feat(plugins): capability-gated ctx.platform_actions facade (#64176) 2026-08-12 20:10:51 -07:00
plugin_dev.py feat(plugins): manifest v2 — schema version, api_version, inter-plugin deps, pip-dependency declaration seam, config schema (#64165) 2026-08-12 18:39:22 -07:00
plugin_index.py feat(plugins): community plugin index + hermes plugins search (#64181) 2026-08-12 18:52:08 -07:00
plugin_packs.py feat(plugins): plugin packs — declarative, shareable plugin sets (#64166) 2026-08-12 19:56:44 -07:00
plugins.py fix(plugins): discover entrypoint capabilities 2026-08-13 13:38:58 -07:00
plugins_cmd.py fix(plugins): report entrypoint capabilities in CLI 2026-08-13 13:38:58 -07:00
portal_cli.py
…
profile_describer.py
…
profile_distribution.py
…
profiles.py
…
projects_cmd.py
…
projects_db.py
…
prompt_size.py
…
prompt_stash.py
…
provider_catalog.py
…
providers.py feat: rename Codex OAuth provider label to "ChatGPT or Codex Subscription" 2026-08-13 03:06:08 -07:00
proxy_cli.py
…
psutil_android.py
…
pt_input_extras.py
…
pty_bridge.py
…
pty_session.py
…
relaunch.py
…
resource_limits.py
…
route_identity.py
…
runtime_provider.py
…
secret_prompt.py
…
secrets_cli.py
…
security_advisories.py
…
security_audit.py
…
security_audit_startup.py
…
send_cmd.py
…
service_manager.py
…
session_export.py
…
session_export_html.py
…
session_export_md.py
…
session_filters.py
…
session_listing.py
…
session_lost_and_found.py fix(sessions): probe sqlite3 CLI for .recover capability, not just PATH presence 2026-08-12 19:43:47 -07:00
session_recap.py
…
session_recovery.py fix(sessions): recover budget exhaustion + lost_and_found last-resort lane 2026-08-12 19:43:47 -07:00
sessions_cmd.py fix(sessions): recover budget exhaustion + lost_and_found last-resort lane 2026-08-12 19:43:47 -07:00
setup.py
…
setup_hidden_env.py
…
setup_whatsapp_cloud.py
…
sizefmt.py
…
skills_config.py
…
skills_hub.py
…
skin_cmd.py
…
skin_engine.py
…
slack_cli.py
…
slash_exec.py
…
sqlite_runtime.py
…
sqlite_safe_read.py
…
sqlite_util.py
…
status.py
…
stdio.py
…
suggestions_cmd.py
…
telegram_managed_bot.py
…
timefmt.py
…
timeouts.py
…
tips.py
…
tools_config.py fix(browser): harden npx agent-browser resolution 2026-08-13 02:38:28 -07:00
toolset_validation.py
…
uninstall.py
…
update_cmd.py fix(update): repair failed Node deps on an already-current checkout (#85539) 2026-08-13 18:42:42 +00:00
update_lock.py
…
urllib_security.py
…
vercel_auth.py
…
verify_cmd.py
…
voice.py
…
web_deps.py
…
web_git.py
…
web_models.py
…
web_server.py feat(gateway): disk-usage telemetry + dashboard disk-pressure banner (NS-656) 2026-08-13 20:30:12 -07:00
webhook.py
…
win_pty_bridge.py
…
windows_ssh_runtime.py
…
write_approval_commands.py
…
xai_retirement.py
…