We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5ca2b3a commit 10ce3feCopy full SHA for 10ce3fe
src/eca/features/chat.clj
@@ -111,9 +111,9 @@
111
mcp-prompt? (string/includes? (first (string/split message #" ")) ":")]
112
(cond
113
(and slash? mcp-prompt?)
114
- (let [message (subs message 1)
115
- parts (string/split message #" ")
116
- [server] (string/split message #":")]
+ (let [command (subs message 1)
+ parts (string/split command #" ")
+ [server] (string/split command #":")]
117
{:type :mcp-prompt
118
:server server
119
:prompt (second (string/split (first parts) #":"))
@@ -317,7 +317,8 @@
317
db*
318
messenger
319
config]
320
- (let [chat-id (or chat-id
+ (let [message (string/trim message)
321
+ chat-id (or chat-id
322
(let [new-id (str (random-uuid))]
323
(swap! db* assoc-in [:chats new-id] {:id new-id})
324
new-id))
0 commit comments