From 2ae6e2b87734d38cb2e8923d6a8775d4ca4fbc80 Mon Sep 17 00:00:00 2001 From: Luxferre Date: Sun, 22 Mar 2026 18:30:22 +0200 Subject: [PATCH] tui: add userMessages helper to model type --- cmd/sidekick-tui/main.go | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/cmd/sidekick-tui/main.go b/cmd/sidekick-tui/main.go index ceda3c2..0ec4a22 100644 --- a/cmd/sidekick-tui/main.go +++ b/cmd/sidekick-tui/main.go @@ -80,6 +80,16 @@ func (m model) formatReasoning(reasoning string) string { return "> *Thinking:*\n>\n" + strings.Join(lines, "\n") + "\n" } +func (m model) userMessages() []string { + var msgs []string + for _, msg := range m.history { + if msg.Role == sidekick.MessageRoleUser { + msgs = append(msgs, msg.Content) + } + } + return msgs +} + type agentResponseMsg struct { response string err error