Skip to content

[Bug]: hermes-tui npmDepsHash is out of date (same root cause as #15272/#15244) #15314

@suderman

Description

@suderman

Bug Description

The hermes-tui derivation (in nix/tui.nix) has a stale npmDepsHash. When building on a clean store, the build fails with:

ERROR: npmDepsHash is out of date

The package-lock.json in src is not the same as the in /nix/store/...-npm-deps.

This is the same class of bug as reported in #15272 (and #15244), but for hermes-tui rather than hermes-web.

Root Cause

In the commit that introduced the regression (merged around 2026-04-24 14:26–14:48 UTC), ui-tui/package-lock.json was updated but the corresponding npmDepsHash in nix/tui.nix was not refreshed.

The stale hash in nix/tui.nix line 7:

hash = "sha256-RU4qSHgJPMyfRSEJDzkG4+MReDZDc6QbTD2wisa5QE0=";

The lockfile it should match corresponds to:

sha256-/lL0IXurF4WlyFYVVwDI0Btcx0uChHdmKQ8ZW3NQf5E=

Steps to Reproduce

On a clean nix store (or any environment without cached hermes-tui artifacts):

nix build github:NousResearch/hermes-agent#tui
# or
nix flake check

Both fail with the hash mismatch error above.

Expected Behavior

hermes-tui builds successfully on main.

Actual Behavior

Build fails during npmConfigHook consistency check between package-lock.json and the prefetched npm deps.

Affected Component

  • nix/tui.nixnpmDepsHash value
  • ui-tui/package-lock.json — updated without corresponding hash bump

Proposed Fix

Update nix/tui.nix line 7 from:

hash = "sha256-RU4qSHgJPMyfRSEJDzkG4+MReDZDc6QbTD2wisa5QE0=";

to:

hash = "sha256-/lL0IXurF4WlyFYVVwDI0Btcx0uChHdmKQ8ZW3NQf5E=";

This is the same remediation as suggested in #15272 for hermes-web.

Related Issues

Metadata

Metadata

Assignees

No one assigned

    Labels

    P1High — major feature broken, no workaroundarea/nixNix flake, NixOS module, container packagingcomp/tuiTerminal UI (ui-tui/ + tui_gateway/)type/bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions