implemented /clear and Ctrl+D and thinking

This commit is contained in:
Luxferre
2026-03-22 17:16:58 +02:00
parent 10fa5def68
commit 359afa64f4
5 changed files with 43 additions and 14 deletions
+6 -6
View File
@@ -426,12 +426,12 @@ func (m model) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
}
func (m *model) runAgent() tea.Cmd {
var ctx context.Context
ctx, m.cancel = context.WithCancel(context.Background())
return func() tea.Msg {
res, err := m.agent.Run(ctx, m.history, m.pool)
return agentResponseMsg{response: res, err: err}
}
var ctx context.Context
ctx, m.cancel = context.WithCancel(context.Background())
return func() tea.Msg {
res, err := m.agent.Run(ctx, m.history, m.pool)
return agentResponseMsg{response: res, err: err}
}
}
func (m model) View() string {