From e7a431b072d8061dfb52dd6402daee998f8bc2e3 Mon Sep 17 00:00:00 2001 From: Diki Djatar <97192796+dikidjatar@users.noreply.github.com> Date: Mon, 5 Jan 2026 20:30:22 +0700 Subject: [PATCH] Fix: Remove trimming of matched content in Executor.js The output should not be trimmed. Using trim() breaks streamed output (line-by-line) because it removes leading spaces. This results in invalid output for many use cases, such as diffs and git status symbol. --- src/plugins/terminal/www/Executor.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugins/terminal/www/Executor.js b/src/plugins/terminal/www/Executor.js index 419713e6d..4cb6c970c 100644 --- a/src/plugins/terminal/www/Executor.js +++ b/src/plugins/terminal/www/Executor.js @@ -47,7 +47,7 @@ class Executor { const match = message.match(/^([^:]+):(.*)$/); if (match) { const prefix = match[1]; // e.g. "stdout" - const content = match[2].trim(); // output + const content = match[2]; // output onData(prefix, content); } else { onData("unknown", message); @@ -198,4 +198,4 @@ class Executor { const executorInstance = new Executor(); executorInstance.BackgroundExecutor = new Executor(true); -module.exports = executorInstance; \ No newline at end of file +module.exports = executorInstance;