@inetafrica/open-claudia 1.4.0 → 1.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bot.js +4 -4
- package/package.json +1 -1
package/bot.js
CHANGED
|
@@ -676,12 +676,12 @@ async function runClaude(prompt, cwd, replyToMsgId, opts = {}) {
|
|
|
676
676
|
clearInterval(streamInterval); streamInterval = null;
|
|
677
677
|
const finalText = assistantText || "(no output)";
|
|
678
678
|
const chunks = splitMessage(finalText);
|
|
679
|
-
//
|
|
679
|
+
// Delete the streaming progress message and send final result as new message(s)
|
|
680
|
+
// This ensures the user gets a notification for the final answer
|
|
680
681
|
if (statusMessageId) {
|
|
681
|
-
await
|
|
682
|
-
} else {
|
|
683
|
-
await send(chunks[0], { replyTo: replyToMsgId });
|
|
682
|
+
await deleteMessage(statusMessageId);
|
|
684
683
|
}
|
|
684
|
+
await send(chunks[0], { replyTo: replyToMsgId });
|
|
685
685
|
for (let i = 1; i < chunks.length; i++) {
|
|
686
686
|
await send(chunks[i]);
|
|
687
687
|
}
|