From 93b771724564eb73f9f04a4bb073b23ad437ff8c Mon Sep 17 00:00:00 2001 From: Razvan Albu Date: Fri, 15 May 2026 12:56:31 +0200 Subject: [PATCH] fix: remove redundant separators (#110) --- opencode-plugin/src/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/opencode-plugin/src/index.ts b/opencode-plugin/src/index.ts index 6b46205..d8e950f 100644 --- a/opencode-plugin/src/index.ts +++ b/opencode-plugin/src/index.ts @@ -161,7 +161,7 @@ export const MyPlugin: Plugin = async (input: PluginInput) => { prompt: getTextFromParts(userMsg.parts), response: assistantMsgs .map(message => getTextFromParts(message.parts)) - .filter(text => text) + .filter(text => text.trim().length > 0) .join("\n\n---\n\n"), } }) @@ -182,7 +182,7 @@ export const MyPlugin: Plugin = async (input: PluginInput) => { prompt: getTextFromParts(buildUserMsg.parts), response: buildAssistantMsgs .map(message => getTextFromParts(message.parts)) - .filter(text => text) + .filter(text => text.trim().length > 0) .join("\n\n---\n\n"), }