Skip to content

fix(tui): include apps/shared in npm build source for @hermes/shared workspace dependency - #67885

Closed
ryjen wants to merge 3 commits into
NousResearch:mainfrom
ryjen:main
Closed

fix(tui): include apps/shared in npm build source for @hermes/shared workspace dependency#67885
ryjen wants to merge 3 commits into
NousResearch:mainfrom
ryjen:main

Conversation

@ryjen

@ryjen ryjen commented Jul 20, 2026

Copy link
Copy Markdown

What does this PR do?

The TUI build (nix/tui.nix) only passes dirs = [ "ui-tui" ] to mkNpmPassthru. While apps/shared/package.json is included for npm workspace resolution, the apps/shared/src/ directory (with the actual TypeScript source files) is not — causing esbuild to fail resolving @hermes/shared/charge-settlement.

Adds "apps/shared" to the dirs list, matching the existing pattern used by apps/desktop (dirs = [ "apps/desktop" "apps/shared" ]).

Related Issue

Fixes #67056
Fixes #67079

Type of Change

  • 🐛 Bug fix (non-breaking change that fixes an issue)

Changes Made

  • nix/tui.nix:4 — add "apps/shared" to mkNpmPassthru dirs

How to Test

  1. nix build .#tui — previously failed with ERROR: Could not resolve "@hermes/shared/charge-settlement", now succeeds
  2. nix build .#packages.x86_64-linux.default — full hermes-agent package builds correctly

Checklist

Code

  • I've read the Contributing Guide
  • My commit messages follow Conventional Commits (fix(scope):, feat(scope):, etc.)
  • I searched for existing PRs to make sure this isn't a duplicate
  • My PR contains only changes related to this fix/feature (no unrelated commits)
  • I've run pytest tests/ -q and all tests pass
  • I've added tests for my changes (required for bug fixes, strongly encouraged for features)
  • I've tested on my platform: NixOS x86_64-linux

Documentation & Housekeeping

  • I've updated relevant documentation (README, docs/, docstrings) — or N/A
  • I've updated cli-config.yaml.example if I added/changed config keys — or N/A
  • I've updated CONTRIBUTING.md or AGENTS.md if I changed architecture or workflows — or N/A
  • I've considered cross-platform impact (Windows, macOS) per the compatibility guide — or N/A
  • I've updated tool descriptions/schemas if I changed tool behavior — or N/A

ryjen added 3 commits July 19, 2026 17:24
…workspace dependency

The TUI imports from @hermes/shared/charge-settlement and other shared
modules, but mkNpmPassthru only included 'ui-tui' in the build source.
This meant apps/shared/package.json was present (for npm workspace
resolution) but apps/shared/src/ was not — so the actual TypeScript
source files like charge-settlement.ts were missing at build time.
fix(tui): include apps/shared in npm build source
@alt-glitch alt-glitch added type/bug Something isn't working duplicate This issue or pull request already exists comp/tui Terminal UI (ui-tui/ + tui_gateway/) area/nix Nix flake, NixOS module, container packaging P2 Medium — degraded but workaround exists sweeper:risk-compatibility Sweeper risk: may break existing users, config, migrations, defaults, or upgrades labels Jul 20, 2026
@alt-glitch

Copy link
Copy Markdown
Collaborator

This was generated by AI during triage.

Duplicate of #67082: the live patch is byte-identical and makes the same apps/shared Nix TUI source-filter change.

@x7peeps

x7peeps commented Jul 20, 2026

Copy link
Copy Markdown
Contributor

Closing as duplicate

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/nix Nix flake, NixOS module, container packaging comp/tui Terminal UI (ui-tui/ + tui_gateway/) duplicate This issue or pull request already exists P2 Medium — degraded but workaround exists sweeper:risk-compatibility Sweeper risk: may break existing users, config, migrations, defaults, or upgrades type/bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: TUI fails to build in nix environment [Bug]: Nix TUI source filter omits @hermes/shared sources

3 participants