feat: update tamplates
ci-front / build (push) Successful in 2m18s

This commit is contained in:
nikita
2026-04-05 07:07:14 +03:00
parent 2bc3da21fd
commit 337e5891f3
3 changed files with 64 additions and 81 deletions
@@ -60,21 +60,14 @@ export const RunScriptModal: React.FC<RunScriptModalProps> = ({
// 4. Ждём завершения по id
const jobResult = await scriptsApi.waitJob(runResult.id);
// 5. Обновляем джоб
addJob({
id: jobResult.id,
scriptPath,
// 5. Обновляем существующий джоб (не создаём новый!)
const terminalStore = useTerminalStore.getState();
terminalStore.updateJob(runResult.id, {
command: jobResult.command,
stdin: jobResult.stdin,
});
// Обновляем с финальным статусом
const terminalStore = useTerminalStore.getState();
terminalStore.updateJob(jobResult.id, {
status: jobResult.status,
stdout: jobResult.stdout,
stderr: jobResult.stderr,
stdin: jobResult.stdin,
isRunning: false,
});