The open source coding agent.
TypeScript
fix(tui): actually fix mouse ansi codes leaking
adamdotdevin22b244f847d6
diff --git a/packages/tui/input/driver.go b/packages/tui/input/driver.goindex ded96e75683..710d99da1ce 100644--- a/packages/tui/input/driver.go+++ b/packages/tui/input/driver.go@@ -160,11 +160,11 @@ func (d *Reader) readEvents() ([]Event, error) {}switch ev.(type) {- case UnknownEvent:- // If the sequence is not recognized by the parser, try looking it up.- if k, ok := d.table[string(buf[i:i+nb])]; ok {- ev = KeyPressEvent(k)- }+ // case UnknownEvent:+ // // If the sequence is not recognized by the parser, try looking it up.+ // if k, ok := d.table[string(buf[i:i+nb])]; ok {+ // ev = KeyPressEvent(k)+ // }case PasteStartEvent:d.paste = []byte{}case PasteEndEvent:diff --git a/packages/tui/internal/tui/tui.go b/packages/tui/internal/tui/tui.goindex 512107ffe38..389dd64f113 100644--- a/packages/tui/internal/tui/tui.go+++ b/packages/tui/internal/tui/tui.go@@ -11,7 +11,6 @@ import ("github.com/charmbracelet/bubbles/v2/key"tea "github.com/charmbracelet/bubbletea/v2""github.com/charmbracelet/lipgloss/v2"- "github.com/charmbracelet/x/input""github.com/sst/opencode-sdk-go""github.com/sst/opencode/internal/app"@@ -509,8 +508,6 @@ func (a appModel) Update(msg tea.Msg) (tea.Model, tea.Cmd) {a.editor.SetExitKeyInDebounce(false)case dialog.FindSelectedMsg:return a.openFile(msg.FilePath)- case input.UnknownEvent:- return a, nil}s, cmd := a.status.Update(msg)