[Bug]: ACP launcher bootstrap fails with ETARGET after each release (npm --prefer-offline reads stale metadata)

オープン 初心者向け
#639 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
78/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
node.js, typescript
領域
cli, devtools

調査の方向性

acp.js の bootstrap npmArgs リストから始め、bootstrap のインストール失敗がどのように報告されるかを調べます。--prefer-offline を使って古いメタデータのケースを再現し、npm が ETARGET または notarget をどのように報告するか確認します。このエラーの場合に bootstrap が --prefer-online で一度再試行し、その他のインストールエラーは引き続き通常どおり報告すれば完了です。

索引モデルが issue の本文から書いたものです。

説明

Product or interface

CLI - ACP

Version

@minimax-ai/code-acp 0.8.1, bootstrapping @minimax-ai/code 0.8.1. The same failure happened earlier with 0.8.0. npm 11.19.0, Node.js 24.22.1.

Platform

Linux

OS version and architecture

Ubuntu 24.04 x64

Issue area

Startup / install / update

Steps to reproduce
  1. Use a host whose npm cache holds metadata for @minimax-ai/code that was fetched before the new release was published.
  2. Have an ACP client update the launcher to the new @minimax-ai/code-acp version and open a session. At this point there is no ready.json yet for the new release under ~/.minimax-code/acp-releases/.
  3. The launcher bootstraps with npm install @minimax-ai/code@<version> --prefer-offline … (acp.js, the npmArgs list in the bootstrap).
Expected and actual behavior

Expected: the launcher installs the exact version it targets.

Actual: with --prefer-offline, npm answers from the cached metadata, which does not list the new version yet. The install fails with ETARGET. Every session open then fails until the cached metadata expires or something else refreshes it, and the ACP client only sees a generic session-open failure. On one host this happened after the 0.8.0 release and again after 0.8.1. The second time it lasted about 17.5 hours and affected 28 session attempts. Running npm view @minimax-ai/code@<version> version --prefer-online once clears it immediately.

The launcher's isolated npm environment drops every npm_config_* variable except the proxy keys, so a client cannot pass prefer-online itself.

Suggested fix: when the bootstrap install fails with ETARGET/notarget, retry it once with --prefer-online. The launcher always targets an exact, often just-published version, so stale metadata is expected right after each release.

Redacted error summary
MiniMax Code bootstrap failed: npm install @minimax-ai/[email protected] exited with code 1: npm error code ETARGET
npm error notarget No matching version found for @minimax-ai/[email protected].
npm error notarget In most cases you or one of your dependencies are requesting a package version that doesn't exist.
Before submitting
  • I have searched existing issues.
  • I have included my version and removed sensitive information.
主要言語
TypeScript
スター
2.3k
フォーク
315
平均マージ
3時間 54分
マージ済み PR(30日)
9

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

MiniMax-AI/minimax-code のほかの issue

MiniMax-AI/minimax-code の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。