[Bug]: `uv_tty_init returned EBADF` on Windows
Author: selfagencyCreated Jul 24, 2023Updated Aug 20, 2026
Labelsbug
Opencommit Version
2.4.2
Node Version
18.17.0
NPM Version
9.6.7
What OS are you seeing the problem on?
Windows
What happened?
Your cli seems to suffer from the same malady Nutlope/aicommits once did pertaining to Windows file descriptors:
◇ Commit message generated
25h│
└ ✖ TTY initialization failed: uv_tty_init returned EBADF (bad file descriptor)They resolved it like so: https://github.com/Nutlope/aicommits/pull/176
Expected Behavior
To not throw an error
Current Behavior
It throws uv_tty_init returned EBADF
Possible Solution
https://github.com/Nutlope/aicommits/pull/176
Steps to Reproduce
Run oco in a repo on a Windows machine
Relevant log output
◇ Commit message generated
│
└ ✖ TTY initialization failed: uv_tty_init returned EBADF (bad file descriptor)Source: di-sukharev/opencommit