[Windows] Startup crash when opening multiple instances: EBUSY: failed copying files... package bun-pty
Los mantenedores suelen responder en 1 día
@mynameistito ya está trabajando en esto.
Desde el 18/1/2026.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 32/100
- Tipo de issue
- Error
- Claridad
- Bastante claro
- Estado de actividad
- Estancado
- Stack tecnológico
- bun, typescript
- Área
- cli
Línea de trabajo
Reproduce el fallo en Windows con opencode-pty habilitado siguiendo los pasos y la configuración de opencode.jsonc, primero con una instancia y después con dos. Comienza con los registros de instalación de inicio de opencode-pty y bun-pty, y verifica que se complete cuando varias instancias de OpenCode hagan bootstrap sin BunInstallFailedError ni EBUSY.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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
- Enable
opencode-ptyinopencode.json. - Open a project in OpenCode (Instance A) - Success.
- Attempt to open a second project in a new window (Instance B) - Failure.
- 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.
- Lenguaje dominante
- TypeScript
- Estrellas
- 597
- Forks
- 65
- Merge medio
- 1 d 20 h
- PR fusionados (30 d)
- 3
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de shekohex/opencode-pty
-
[Bug]: exit notification delivery failures are silently swallowed — agent never wakes, no diagnosticAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
shekohex/opencode-pty#54 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
shekohex/opencode-pty#48 ·
Los mantenedores suelen responder en 1 día
-
PTY output pollutes OpenCode session with ANSI escape sequences, breaking keyboard input on resumePosiblemente ocupada @NAnD71 la tomó hace 1 día. Abierto
Dificultad 4/5 3-5 días Aptitud para principiantes 30/100
shekohex/opencode-pty#75 ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 3/5 1-2 días Aptitud para principiantes 65/100
shekohex/opencode-pty#67 · 3 comentarios · 2 reacciones ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 4/5 3-5 días Aptitud para principiantes 56/100
shekohex/opencode-pty#66 ·
Los mantenedores suelen responder en 1 día
Todos los issues de shekohex/opencode-pty
Issues similares
-
area/frontend area/v2 kind/bug priority/needs-triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
kubeflow/notebooks#1498 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
Los mantenedores suelen responder en 1 día
-
P1
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
SuruchBoss/Cwork#90 ·
-
bug cli service
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 85/100
521xueweihan/HelloGitHub#3922 ·