fix: phantom input bug on wsl (#200)

This commit is contained in:
Rohan Godha
2025-06-19 18:08:56 -07:00
committed by GitHub
parent f6afa2c6bb
commit 6674c6083a
2 changed files with 23 additions and 1 deletions

View File

@@ -44,7 +44,11 @@ type appModel struct {
func (a appModel) Init() tea.Cmd {
var cmds []tea.Cmd
cmds = append(cmds, tea.RequestBackgroundColor)
// https://github.com/charmbracelet/bubbletea/issues/1440
// https://github.com/sst/opencode/issues/127
if !util.IsWsl() {
cmds = append(cmds, tea.RequestBackgroundColor)
}
cmds = append(cmds, a.app.InitializeProvider())
cmds = append(cmds, a.editor.Init())
cmds = append(cmds, a.messages.Init())