From efaba6c5b8aed4aab620d9633d4335eaeed32be0 Mon Sep 17 00:00:00 2001 From: adamdottv <2363879+adamdottv@users.noreply.github.com> Date: Mon, 5 May 2025 11:25:34 -0500 Subject: feat: hide tool calls --- internal/tui/page/chat.go | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'internal/tui/page') diff --git a/internal/tui/page/chat.go b/internal/tui/page/chat.go index 740aaabca..8afd18c22 100644 --- a/internal/tui/page/chat.go +++ b/internal/tui/page/chat.go @@ -26,8 +26,9 @@ type chatPage struct { } type ChatKeyMap struct { - NewSession key.Binding - Cancel key.Binding + NewSession key.Binding + Cancel key.Binding + ToggleTools key.Binding } var keyMap = ChatKeyMap{ @@ -39,6 +40,10 @@ var keyMap = ChatKeyMap{ key.WithKeys("esc"), key.WithHelp("esc", "cancel"), ), + ToggleTools: key.NewBinding( + key.WithKeys("ctrl+h"), + key.WithHelp("ctrl+h", "toggle tools"), + ), } func (p *chatPage) Init() tea.Cmd { @@ -98,6 +103,8 @@ func (p *chatPage) Update(msg tea.Msg) (tea.Model, tea.Cmd) { p.app.CoderAgent.Cancel(p.session.ID) return p, nil } + case key.Matches(msg, keyMap.ToggleTools): + return p, util.CmdHandler(chat.ToggleToolMessagesMsg{}) } } u, cmd := p.layout.Update(msg) -- cgit v1.2.3