Skip to content

Commit 930cec7

Browse files
author
Bruce Hauman
committed
Remove duplicate tool execution display from pretty-print listener
The on-request handler was printing all tool executions from the request, which included loaded session history, causing duplication. Tool executions are now only shown inline in the session history display.
1 parent 3b6edbd commit 930cec7

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/clojure_mcp/prompt_cli.clj

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -188,9 +188,8 @@
188188
[]
189189
(listener/create-listener
190190
{:on-request (fn [req]
191-
(when-let [messages (:messages req)]
192-
(when-let [executions (extract-tool-executions messages)]
193-
(print-tool-executions executions))))
191+
;; Don't print tool executions here - they're shown inline in session history
192+
nil)
194193
:on-response (fn [resp]
195194
(when-let [ai-message (:ai-message resp)]
196195
(when-let [text (:text ai-message)]

0 commit comments

Comments
 (0)