Skip to content

Bump install-script default toolchain: Python 3.13, Node 24 LTS, Vite 8 #40666

Closed

Description

@pty819

Title

Bump install-script default toolchain: Python 3.13, Node 24 LTS, Vite 8

Body

Three related version-bump requests in one issue because they're all "the version pinned in scripts/install.sh / web/package.json lags the current LTS line." Happy to split if maintainers prefer, but I think they read better together since the underlying complaint is the same: the default toolchain shipped by the one-liner installer is two LTS-generations behind the current ecosystem.

1. Python 3.11 → 3.13 in scripts/install.sh

Current: PYTHON_VERSION="3.11" (L60). Fresh installs resolve CPython 3.11.15 from ~/.local/share/uv/python/.

Why bump:

  • 3.11 is in security-only mode and EOLs 2027-10; 3.13 (2024-10) is the current feature release and the most-recently-released LTS.
  • Modern ecosystem tooling (mypy 1.13+, ruff 0.7+, pydantic 2.10+) assumes ≥3.12 in their own code paths and type stubs.
  • pyproject.toml already accepts <3.14, so the upper bound doesn't need to move.

Counterargument I expect: 3.11 still has 1.5+ years of support. If the floor must stay at 3.11, at least consider 3.12 as a middle ground.

2. Node 22 ("Jod") → 24 ("Krypton") in scripts/install.sh

Current: NODE_VERSION="22" (L61), pulls https://nodejs.org/dist/latest-v22.x/.

Why bump:

  • 24 LTS went stable 2025-10-28 (codename Krypton, currently 24.11.0+).
  • web/package.json already pins @types/node@^24.12.0 — the TS types for the dashboard assume the Node 24 API surface, but the runtime that actually builds the dashboard is still Node 22. That type/runtime misalignment is the most concrete cost of leaving the pin at 22.
  • 22 moves to maintenance 2027-04; 24 is the active LTS line for the next ~18 months.

3. Vite 7 → 8 in web/package.json

Current: "vite": "^7.3.1" in web/package.json devDependencies; resolved to 7.3.2 at install time.

Why bump:

  • Vite 8 (released 2026-03-12) ships rolldown as the production bundler. rolldown 1.0.0-rc.17 is already in node_modules/. VoidZero's benchmarks cite 2–6× cold-build improvement on React/Tailwind SPAs.
  • Peer-compat check on the current web/ tree is already clean:
    • @vitejs/plugin-react@5.2.0 peer: ^4 || ^5 || ^6 || ^7 || ^8 ✅
    • @tailwindcss/vite@4.2.4 peer: ^8.0.0 ✅ (and currently resolved alongside vite 7.3.2 because the root range is ^7.3.1 — so 4.2.4 is already declaring it wants vite 8; the root range is forcing npm to ignore that)
  • The v8.0 migration guide's only user-facing breaking change is Safari 16.0 → 16.4 baseline (released 2023), fine for any modern dashboard.

What I'd love a maintainer to confirm

  1. Is there a reason web/package.json still says ^7.3.1 other than "haven't gotten to it" — i.e. has vite 8 been tried and broken something specific?
  2. For Python: is the 3.11 floor load-bearing, or a conservatism choice?
  3. For Node: is the 22 pin load-bearing for any CI image or user base, or just inertia?

Verification recipe

cd web
npm pkg set devDependencies.vite='^8.0.0'
cd .. && npm install --workspace=web
cd web && npm run build

Happy to send PRs for any subset. I tested the matrix on my own fork before opening.

Activity

  1. added
    P3Low — cosmetic, nice to have
    comp/cliCLI entry point, hermes_cli/, setup wizard
    dependenciesPull requests that update a dependency file
    python:uvPull requests that update python:uv code
    on Jun 6, 2026
  2. liuhao1024 commented on Jun 8, 2026

    @liuhao1024

    This is fixed by #40689 — bump default toolchain to Python 3.13, Node 24 LTS, Vite 8.

  3. pty819 commented on Jun 8, 2026

    @pty819
    Author

    npm warn EBADENGINE Unsupported engine {
    npm warn EBADENGINE package: '@icons-pack/react-simple-icons@13.13.0',
    npm warn EBADENGINE required: { node: '>=24', pnpm: '>=10' },
    npm warn EBADENGINE current: { node: 'v22.22.3', npm: '10.9.8' }
    npm warn EBADENGINE }
    npm warn deprecated @babel/plugin-proposal-private-methods@7.18.6: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-private-methods instead.

  4. TigerCoder27 commented on Jun 13, 2026

    @TigerCoder27

    Adding a security angle to the Vite 7 -> 8 part of this: on a fresh 0.16.0 Windows install, hermes doctor flags web's vite 7 pin as actively vulnerable, not just stale.

    hermes doctor reports two high-severity advisories in both the web and ui-tui workspaces, all from esbuild pulled in under vite 7:

    Vulnerable range is esbuild 0.17.0 - 0.28.0, fixed in 0.28.1. Every vite 7.x release hard-pins esbuild: ^0.27.0, and 7.3.5 is the highest 7.x, so there is no patched vite 7. The vite 8 bump proposed here is the only way to clear it for web (vite 8 drops the direct esbuild dependency). That arguably moves this from P3 "freshness" to a security fix, at least for the web workspace.

    A few things I hit while verifying the full fix on 0.16.0 that may save the implementer time:

    1. ui-tui is a separate fix this issue doesn't cover. It isn't only transitive-via-vite: ui-tui/package.json has a direct esbuild: ~0.27.0 dev dep, and ui-tui/packages/hermes-ink/package.json has esbuild: ^0.25.0. Both need bumping to ^0.28.1 independently of anything vite does. A vite 8 bump alone leaves ui-tui flagged.

    2. @tailwindcss/vite peer support depends on the exact patch. In the 0.16.0 tree, web declares @tailwindcss/vite: ^4.2.1, and the version resolving there peers vite: ^5.2.0 || ^6 || ^7 (no 8). I had to bump it to ^4.3.1 (peer adds ^8) for the vite 8 install to be peer-clean. Your snapshot cites 4.2.4 peering ^8.0.0, so this may already hold on newer trees, but worth pinning explicitly so the bump doesn't depend on which 4.2.x npm happens to resolve.

    3. A root overrides for esbuild silently no-ops on incremental installs. I first tried "overrides": { "esbuild": "^0.28.1" } in the root package.json (next to the existing lodash override). npm only applies a newly-added override during a fresh resolution. npm install --package-lock-only and npm update esbuild both report "up to date" and leave the locked 0.27.x in place, because it still satisfies vite 7's ^0.27.0. The override only takes effect if you delete package-lock.json and regenerate. Worth a heads-up in whatever audit/CI step closes this out, so it doesn't look fixed when it isn't.

    The combination that gets both hermes doctor and npm audit --workspace web|ui-tui to "found 0 vulnerabilities":

    • web: vite ^7.3.1 -> ^8.0.16, @tailwindcss/vite ^4.2.1 -> ^4.3.1
    • ui-tui: esbuild ~0.27.0 -> ^0.28.1
    • ui-tui/packages/hermes-ink: esbuild ^0.25.0 -> ^0.28.1
    • root: add esbuild: ^0.28.1 to overrides, then regenerate the lockfile from scratch

    @vitejs/plugin-react@5.2.0 is already vite-8 peer-clean, matching your analysis. Verified end to end on a Windows 0.16.0 install: both workspaces and the whole-tree npm audit go to zero.

  5. added
    needs-decisionAwaiting maintainer decision before any implementation
    comp/dashboardWeb dashboard / control panel UI (dashboard/, landing)
    and removed
    comp/dashboardWeb dashboard / control panel UI (dashboard/, landing)
    on Jul 25, 2026
  6. GottZ commented on Jul 29, 2026

    @GottZ

    This was generated by AI during triage.

    Summary

    Two PRs address #40666 with the same Python 3.13, Node 24, and Vite 8 toolchain bump. #40689 covers both platform installers and the Vite lockfile transition, while #40766 changes only the Unix installer and Vite manifest; neither covers the additional managed-Node provisioning paths identified in review, and the Vite changes are now already on main.

    Related pull requests

    Duplicates

    #40766 is a less complete duplicate of #40689: both implement the same Python 3.13, Node 24, and Vite 8 defaults, but #40689 additionally covers install.ps1, plugin-react, and package-lock.json.

    Suggested consolidation

    Consolidate on #40689 as the verified best-fix reference, but do not reopen or merge it as-is: retain main's existing Vite 8 state, explicitly resolve the contributor's native-dependency compatibility blocker, and update and verify all Node provisioning/recovery paths together before submitting a refreshed successor. #40766 can remain closed as a duplicate of #40689.

    Complex graph

    flowchart LR
        classDef open fill:#dbeafe,stroke:#1d4ed8,color:#1e3a8a
        classDef merged fill:#dcfce7,stroke:#15803d,color:#14532d
        classDef closed fill:#e5e7eb,stroke:#6b7280,color:#1f2937
        classDef unverified fill:#f3f4f6,stroke:#9ca3af,color:#374151
        classDef best stroke-width:3px,stroke:#b45309
        classDef target stroke-width:3px,stroke:#4338ca
        I40666(["issue #40666 (open)"])
        subgraph Dup40689 ["PRs duplicating each other"]
            P40689["PR #40689 (closed)"]
            P40766["PR #40766 (closed)"]
        end
        P40689 -->|best fix| I40666
        P40766 -.->|partial| I40666
        class I40666 open
        class I40666 target
        class P40689 closed
        class P40766 closed
        class P40689 best
        click I40666 "https://github.com/NousResearch/hermes-agent/issues/40666"
        click P40689 "https://github.com/NousResearch/hermes-agent/pull/40689"
        click P40766 "https://github.com/NousResearch/hermes-agent/pull/40766"
    
    Loading

    Graph: solid arrow = fixes / best fix, dashed arrow = partial or unverified (see edge label); boxed group = PRs duplicating each other; amber border = best fix; indigo border = target; gray node = closed or no verify verdict yet (state tag in the node label).

    Cross-PR triage: Reviewed 2 pull requests and 1 issue in this complex. Each diff was read against this issue; Assessment working set: 38 kB of PR diffs, 7 kB of issue/PR text, 9 kB of discussion (10 comments), 4 verify verdicts. verdicts reflect diff content, not PR titles. Part of an automated triage batch.

  7. teknium1 commented on Oct 7, 2026

    @teknium1
    Collaborator

    Checked against current main as part of the updater backlog sweep: this one is fixed.

    Fixed by: cd0f97f — feat(python): pin bundled runtime to 3.14 everywhere (pm, termux lane, CI, installers) (on main since 2026-09-07).
    Where: pm/lock.json::packages.python/node; scripts/install.sh (reads packages.python.version from pm/lock.json); web/package.json::devDependencies.vite

    Why this resolves it: Request was Python 3.11->3.13, Node 22->24, Vite 7->8 in install defaults. At base the installer toolchain comes from pm/lock.json pins: CPython 3.14.7 (cd0f97f pin bundled runtime to 3.14 everywhere incl. installers) and Node v26.7.0; web/package.json pins vite 8.2.0 (92a456f, esbuild audit loop) and ui-tui esbuild 0.28.1 - all at or beyond the request, and the vite7/esbuild advisory in comments is cleared.

    If you still hit this on a build that includes that commit, please reopen with the output of hermes debug share and we'll pick it straight back up. Thanks for the report.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Low — cosmetic, nice to havearea/install-updateInstaller, updater, packaging, wheels, doctorcomp/cliCLI entry point, hermes_cli/, setup wizarddependenciesPull requests that update a dependency fileneeds-decisionAwaiting maintainer decision before any implementationpython:uvPull requests that update python:uv codetype/featureNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions