Skip to content

ACP Registry installs MiniMax Code without its native SQLite module on npm 12, so every session fails #28120

Open

Description

@Apfelkringel

What happened

In the user's words (translated from German): "MiniMax isn't integrated correctly. It has caused problems since I updated and reinstalled MiniMax Code."

Every message in a MiniMax Code thread failed with only Failed to open acpRegistry provider session ... (full line under Evidence). At the same time T3 showed the provider as ready.

Diagnosis

  • ensureGlobalPackage runs npm install --global <packageSpec> for npx registry agents, without --allow-scripts (packages/provider-acp-registry/src/server/AcpRegistrySupport.ts:1267 at v0.1.5, L1280 on main).
  • npm 12 blocks dependency install scripts by default and still exits 0. For MiniMax Code this skips the better-sqlite3 build, so better_sqlite3.node never exists. T3 records the install as good and keeps reusing it.
  • MiniMax Code opens its SQLite state at startup, so mcode acp exits 1 before it answers initialize.
  • inspect reports ready for npx agents whenever npm is on PATH, so the provider looks healthy.
  • The thread shows only the generic open-session error. The agent's actionable message (MCode could not load its native SQLite dependency ...) is only in the trace.
  • First-party updates already pass --allow-scripts=<package> (packages/provider-core/src/server/maintenanceResolver.ts:546). Native dependencies need their own entry too (better-sqlite3), because npm matches allowScripts per package.

Here the failing copy was a hand-made 0.7.4 install made with the same npm and reached through the instance's commandPath. The repro shows that T3's own install command ends in the same state.

Steps to reproduce

npm 12.2.0 with Node 24.15.0 (nvm), the npm T3 resolved.

  1. Run T3's install command into an empty prefix: npm_config_prefix=$REPRO/prefix npm install --global @minimax-ai/[email protected]. It exits 0 and warns that the install scripts of @minimax-ai/code and better-sqlite3 were blocked. No better_sqlite3.node exists.
  2. Run $REPRO/prefix/bin/mcode acp with an ACP initialize on stdin. It exits 1 with Could not locate the bindings file.
  3. In T3, add MiniMax Code from the ACP Registry and send a message in a new thread. Per the source, T3 runs step 1 into its managed tools directory, shows the provider as ready, and the session fails as in step 2.

Steps 1 and 2 ran here, step 2 with an isolated HOME. Step 3 was not rerun, because it would replace the user's working setup.

Version

0.1.5 (T3 Code (Beta) desktop app and its local server)

Environment

macOS 27.2 (26B123) arm64, Node 24.15.0 with npm 12.2.0 (nvm), MiniMax Code 0.2.7 (registry pin) and 0.7.4

Evidence

# npm 12.2.0, empty prefix
$ npm_config_prefix=$REPRO/prefix npm install --global @minimax-ai/[email protected]; echo "exit $?"
npm warn install-scripts 2 packages had install scripts blocked because they are not covered by allowScripts:
npm warn install-scripts   @minimax-ai/[email protected] (postinstall: node ./verify-native-install.mjs)
npm warn install-scripts   [email protected] (install: prebuild-install || node-gyp rebuild --release)
exit 0
$ $REPRO/prefix/bin/mcode acp   # ACP initialize on stdin
current_local_runtime_v2_migration_failed:sqlite:runtime-state:open:Could not locate the bindings file.
exit 1

# server.trace.ndjson, AcpAdapterV2.openSession on the user's machine
ProviderAdapterOpenSessionError: Failed to open acpRegistry provider session provider-session:provider-instance:acpRegistry_minimax_code:thread:<thread-id>:<session-id>.
  [cause]: AcpProcessExitedError: ACP process exited with code 1
  MCode could not load its native SQLite dependency.

# caches/acpRegistry_minimax_code.json at the same time
"installed": true, "version": null, "status": "ready"

Related issues

#24249 (closed) is the same npm 12 behavior in Grok's updater. #18305 (closed) is a different registry failure that was also hidden behind the generic open-session error.

Fix applied or workaround

The instance's commandPath wrapper now runs a global MiniMax Code 0.7.4 whose native module is built, and mcode acp answers initialize. Reinstalling into T3's managed prefix with --allow-scripts=@minimax-ai/code,better-sqlite3 should also work, but was not tried here.

Filed by

Claude Code (claude-opus-5-5) via t3 triage

Activity

  1. added
    via-triage
    on Oct 31, 2026
  2. added a commit that references this issue on Nov 10, 2026
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

    via-triage

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions