Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

[Windows] Startup crash when opening multiple instances: EBUSY: failed copying files... package bun-pty

Đang mở
#7 8 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.

  • #1 của @mynameistito — đã đóng, không merge
  • #8 của @mynameistito — đã đóng, không merge

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
32/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
bun, typescript
Lĩnh vực
cli

Hướng nghiên cứu

Tái hiện lỗi trên Windows với opencode-pty được bật bằng cách sử dụng các bước và cấu hình opencode.jsonc, trước tiên với một instance rồi với hai instance. Bắt đầu từ các log cài đặt lúc khởi động của opencode-pty và bun-pty, rồi xác minh việc hoàn tất khi nhiều instance OpenCode bootstrap mà không gặp BunInstallFailedError hoặc EBUSY.

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

Mô tả

bug
Description

I am experiencing a crash when attempting to open a second instance of OpenCode while the opencode-pty plugin is enabled.

The first instance boots correctly. However, launching a second instance triggers a BunInstallFailedError. The logs indicate an EBUSY error regarding bun-pty, suggesting a file locking issue where the first instance is holding onto the dependency files, preventing the second instance from verifying or copying them from the cache.

Steps to Reproduce
  1. Enable opencode-pty in opencode.json.
  2. Open a project in OpenCode (Instance A) - Success.
  3. Attempt to open a second project in a new window (Instance B) - Failure.
  4. Instance B crashes with a TUI bootstrap failure.
Expected Behavior

Multiple instances of OpenCode should be able to run simultaneously with the opencode-pty plugin enabled, as they do without the plugin.

Actual Behavior

The second instance fails to bootstrap. The process terminates with a BunInstallFailedError.

Logs
INFO  2026-01-18T01:16:55 +5294ms service=bun code=1 stdout=bun add v1.3.5 (1e86cebd)
...
installed [email protected]

91 packages installed [5.40s]
Failed to install 1 package
 stderr=Resolving dependencies
Resolved, downloaded and extracted [1]
EBUSY: failed copying files from cache to destination for package bun-pty
Saved lockfile
 done
ERROR 2026-01-18T01:16:55 +3ms service=server error=BunInstallFailedError Caused by: Command failed with exit code 1 failed

Console Output:

{
  "name": "BunInstallFailedError",
  "data": {
    "pkg": "opencode-pty",
    "version": "latest"
  }
}
Environment
  • OS: Windows 10 x64
  • OpenCode Version: 1.1.25
  • Bun Version: 1.3.6
  • Plugin Version: [email protected] (latest)
Configuration

Here is my current opencode.jsonc:
https://gist.github.com/mynameistito/6198ccbbeee48503f3a6d201f3e4caf4

Additional Context

The error EBUSY: failed copying files from cache to destination for package bun-pty suggests that the native binary for the PTY is currently locked by the OS (used by the first OpenCode instance), preventing Bun from performing its installation/integrity check for the second instance.


Ngôn ngữ chính
TypeScript
Star
597
Fork
65
Merge trung bình
1 ngày 20 giờ
Pull request đã merge (30 ngày)
3

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

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

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 shekohex/opencode-pty

Tất cả issue của shekohex/opencode-pty

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.