Commit 6f1bb3f

mo khan <mo@mokhan.ca>
2026-01-22 05:02:35
refactor: turn /shell into a one-liner
1 parent 08fd905
Changed files (1)
lib
elelem
lib/elelem/agent.rb
@@ -52,10 +52,7 @@ module Elelem
       case input
       when "/exit" then exit(0)
       when "/init" then init_agents_md
-      when "/shell"
-        transcript = start_shell
-        history << { role: "user", content: transcript } unless transcript.strip.empty?
-        terminal.say "  → shell session captured"
+      when "/shell" then history << { role: "user", content: start_shell }
       when "/clear"
         @history = []
         @memory = nil