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

Đang mở Phù hợp với người mới
#639 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
78/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
node.js, typescript
Lĩnh vực
cli, devtools

Hướng nghiên cứu

Bắt đầu tại acp.js, ở danh sách npmArgs của bootstrap, rồi kiểm tra cách các lỗi cài đặt bootstrap được báo cáo. Tái hiện trường hợp metadata cũ bằng --prefer-offline và kiểm tra cách npm báo cáo ETARGET hoặc notarget. Hoàn thành khi bootstrap thử lại một lần với --prefer-online khi gặp lỗi đó và vẫn báo cáo các lỗi cài đặt khác như bình thường.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.
Ngôn ngữ chính
TypeScript
Star
2.3k
Fork
315
Merge trung bình
3 giờ 54 phút
Pull request đã merge (30 ngày)
9

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của MiniMax-AI/minimax-code

Tất cả issue của MiniMax-AI/minimax-code

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.