diff options
| author | adamdottv <[email protected]> | 2025-06-16 12:34:34 -0500 |
|---|---|---|
| committer | adamdottv <[email protected]> | 2025-06-16 12:34:34 -0500 |
| commit | c8eb1b24c38aad7b1d0375f4e09738f72ca1c929 (patch) | |
| tree | ceb20787f305893179e43985764f84b6279a7ac5 /packages/tui/internal/page | |
| parent | b9f894f1e94e0bd21cd1cc6080f21498d674e371 (diff) | |
| download | opencode-c8eb1b24c38aad7b1d0375f4e09738f72ca1c929.tar.gz opencode-c8eb1b24c38aad7b1d0375f4e09738f72ca1c929.zip | |
feat: believe it or not, even faster tui init
Diffstat (limited to 'packages/tui/internal/page')
| -rw-r--r-- | packages/tui/internal/page/chat.go | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/packages/tui/internal/page/chat.go b/packages/tui/internal/page/chat.go index d97171e16..b96f52b2c 100644 --- a/packages/tui/internal/page/chat.go +++ b/packages/tui/internal/page/chat.go @@ -98,7 +98,6 @@ func (p *chatPage) Update(msg tea.Msg) (tea.Model, tea.Cmd) { // Get the current text from the editor to determine which provider to use editorModel := p.editor.GetContent().(interface{ GetValue() string }) currentInput := editorModel.GetValue() - provider := p.completionManager.GetProvider(currentInput) p.completionDialog.SetProvider(provider) @@ -106,9 +105,9 @@ func (p *chatPage) Update(msg tea.Msg) (tea.Model, tea.Cmd) { p.completionDialog = context.(dialog.CompletionDialog) cmds = append(cmds, contextCmd) - // Doesn't forward event if enter key is pressed and there are completions + // Doesn't forward event if enter key is pressed if keyMsg, ok := msg.(tea.KeyMsg); ok { - if keyMsg.String() == "enter" { // && !p.completionDialog.IsEmpty() { + if keyMsg.String() == "enter" { return p, tea.Batch(cmds...) } } |
