Commit 8959a47

mo khan <mo@mokhan.ca>
2026-01-20 00:56:29
fix: bug in collecting final tool content
1 parent f4b416c
Changed files (1)
lib
elelem
lib/elelem/agent.rb
@@ -44,6 +44,7 @@ module Elelem
       history << { role: "user", content: input }
       compact_if_needed
       ctx = []
+      content = nil
 
       loop do
         terminal.waiting
@@ -57,7 +58,7 @@ module Elelem
         end
       end
 
-      history << { role: "assistant", content: summarize(ctx) }
+      history << { role: "assistant", content: content }
     end
 
     private