From 9c4a246205531df95558d1ba9aec75c383b76ffd Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 22 Nov 2025 03:57:28 +0000 Subject: [PATCH] Refactor: Move no_tee and ID to initial commandVariable declaration Co-authored-by: whyour <22700758+whyour@users.noreply.github.com> --- back/services/cron.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/back/services/cron.ts b/back/services/cron.ts index 77af09e9..5956653f 100644 --- a/back/services/cron.ts +++ b/back/services/cron.ts @@ -641,12 +641,11 @@ export default class CronService { if (!command.startsWith(TASK_PREFIX) && !command.startsWith(QL_PREFIX)) { command = `${TASK_PREFIX}${tab.command}`; } - let commandVariable = `real_time=${Boolean(realTime)} `; + let commandVariable = `real_time=${Boolean(realTime)} no_tee=true ID=${tab.id} `; // Only include log_name if it has a truthy value to avoid passing null/undefined to shell if (tab.log_name) { commandVariable += `log_name=${tab.log_name} `; } - commandVariable += `no_tee=true ID=${tab.id} `; if (tab.task_before) { commandVariable += `task_before='${tab.task_before .replace(/'/g, "'\\''")