You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running opencode, it takes a few seconds to launch, that's fine, acceptable.
However the bug is that whatever you write in that delay is lost instead of buffered.
I considered filing this as a feature request, instead of a bug. But what determines if this is a bug or a feature request is if there's additional work required to support this feature, or if this is a natural feature supported by the OS that is being lost somewhere due to an imprecision in the code.
Here's a small MVCE demonstrating a simple program that might or might not lose the buffer:
import time
time.sleep(5)
x = input("write")
print(x)
Will it lose the buffer? that is, if you write something in the first five seconds, will it be lost? How about if you write and press enter?
Turns out in both cases, the text typed is processed fine.
So the natural state of a program, at least on linux, is for the text sent during startup to be caught and not dropped.
This works even if piping io through using wsl or ssh.
Activity
JosXa commentedon Apr 3, 2026
Theme detection made this quite complicated, but here's a fix: #20934
Could you try it out, maybe try to break the implementation?
TZubiri commentedon Apr 3, 2026
Thank you for submitting a fix for this, it looks like it's failing ci tests though.
TZubiri commentedon Apr 3, 2026
will try to break it tho
github-actions commentedon Jul 4, 2026
To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.