Skip to content

fix(packaging): include web_dist assets in sdist and improve missing-frontend error#14918

Closed
aniruddhaadak80 wants to merge 1 commit into
NousResearch:mainfrom
aniruddhaadak80:fix/wheel-missing-web-dist
Closed

fix(packaging): include web_dist assets in sdist and improve missing-frontend error#14918
aniruddhaadak80 wants to merge 1 commit into
NousResearch:mainfrom
aniruddhaadak80:fix/wheel-missing-web-dist

Conversation

@aniruddhaadak80

Copy link
Copy Markdown
Contributor

Summary

Fixes #14880

The built wheel/sdist is missing hermes_cli/web_dist/ frontend assets, causing the dashboard to return a 404 with an unhelpful error message when accessed.

Root Cause

MANIFEST.in only grafts skills and optional-skills directories. While pyproject.toml declares hermes_cli = ["web_dist/**/*"] in [tool.setuptools.package-data], the sdist tarball itself doesn't include the web_dist directory because MANIFEST.in doesn't graft it. When a wheel is built from the sdist (e.g. in CI/CD pipelines or downstream packagers), the assets are silently excluded.

Changes

MANIFEST.in:

  • Added graft hermes_cli/web_dist to ensure the frontend assets are included in sdist builds

hermes_cli/web_server.pymount_spa():

  • Improved the no-frontend error message to suggest pip install hermes-agent[web] for pip users alongside the existing dev build command

Testing

  • MANIFEST.in graft is additive — if web_dist/ doesn't exist at build time, the graft is a no-op (no build failure)
  • The pyproject.toml package-data glob (web_dist/**/*) already handles wheel inclusion; the MANIFEST.in graft covers the sdist path
  • Error message change is cosmetic — no functional regression

Checklist

  • Follows Conventional Commits format
  • Single logical change
  • No breaking changes
  • Existing tests unaffected

…frontend error

MANIFEST.in did not graft hermes_cli/web_dist, so the frontend
assets were excluded from sdist builds. This caused pip installs
from the source tarball (and any downstream sdist-based packaging)
to ship without the dashboard UI, returning a 404 with an unhelpful
error message.

- Add 'graft hermes_cli/web_dist' to MANIFEST.in
- Improve the no-frontend error message to suggest both pip
  reinstall (hermes-agent[web]) and the dev build command

Closes NousResearch#14880
Copilot AI review requested due to automatic review settings April 24, 2026 04:55
@alt-glitch alt-glitch added type/bug Something isn't working P2 Medium — degraded but workaround exists comp/cli CLI entry point, hermes_cli/, setup wizard labels Apr 24, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

@teknium1

Copy link
Copy Markdown
Contributor

Closing as out of scope for #14898 — this PR targets #14880 (sdist packaging). The web_dist rebuild-loop bug in #14898 was fixed via #16292. If you want to re-file just the MANIFEST.in graft portion against #14880, happy to review.

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

Labels

comp/cli CLI entry point, hermes_cli/, setup wizard P2 Medium — degraded but workaround exists type/bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0.10.0 wheel missing hermes_cli/web_dist/ — dashboard 401s on every /api/* request (pip-install vector)

4 participants