Skip to content

[Release]: the WebUI package version on main is behind what is published, and nothing bumps it #41

Closed

Description

@antianqi

release/webui-npm/package.json says 0.1.7, but @minimax-webui/minimax-code on npm is already at 0.1.8 (0.1.8 was published 2026-11-09T06:59:32Z; 0.1.7's gitHead 7eb55e1d is on main).

The repository has scripts/package-webui-npm.mjs (packaging) and scripts/verify-webui-package.mjs (acceptance), but no publish script for the WebUI package and no version bump anywhere — the CLI side has scripts/publish-cli-release.mjs to model it on. The version is therefore edited by hand, and main has fallen one behind.

Two consequences:

  1. Packaging from main produces 0.1.7, and npm already has 0.1.7. A publish without bumping first is rejected by npm for a version that exists, and 0.1.8 is taken as well.
  2. The acceptance result reports the version it built — Installed WebUI package PASS: @minimax-webui/minimax-code@0.1.7 — so the message a release note would quote does not match the version a user actually installs from npm.

Either add a bump-and-publish step next to the existing release script, or state in the release checklist that the version has to be edited by hand, and let main carry the version that is actually published.

Activity

  1. added
    bug
    on Nov 12, 2026
  2. antianqi commented on Nov 13, 2026

    @antianqi
    CollaboratorAuthor

    A Windows test makes this concrete, and it is why the bump is not optional.

    Installing the published 0.1.8 into a fresh data directory seeds:

    mavis-trash.cmd    99 bytes
    mavis-trash.js   17825 bytes
    

    Installing from main — which carries the rename from #14 — seeds:

    mavis-trash.cmd   100 bytes   -> points at mavis-trash.cjs
    mavis-trash.cjs   17825 bytes
    

    The bytes are the same. Only the extension differs, and that is the entire bug. Node reads the module type of a .js file from the nearest ancestor package.json, so on a machine whose home directory holds a package.json with "type": "module", the shim is parsed as ESM and dies with:

    ReferenceError: require is not defined in ES module scope
    

    The runtime then reports local_runtime.trash_unavailable, and recoverable deletion is off. On Windows that means two things at once: the agent's deletes stop being recoverable, and the safety layer refuses to delete anything at all, because its own launcher probe fails the same way.

    So 0.1.8 shipped the fix's content under the old name, and main carries the rename but still says 0.1.7 in release/webui-npm/package.json. Publishing from main today would build 0.1.7 — a version npm already has — and npm would refuse it. The next publish has to be 0.1.9, and it is the first one that actually carries the Windows fix.

    Worth checking that the publish step reads that field at all. If the version comes from a tag or an argument instead, the field should still be moved to the same value so the two cannot drift apart again.

  3. Fectivnfy112357 commented on Nov 20, 2026

    @Fectivnfy112357
    Contributor

    The source manifest and public npm registry both report 0.1.9. PR #50 adds the manual release checklist requested here, including the unused-version check, verification of the exact release directory, and the post-publish registry check. Closing as addressed by the submitted PR, pending merge.

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

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions