From 5b78aa9c0e00343288083fd901d07c87b8d28827 Mon Sep 17 00:00:00 2001 From: giteaMyFirstvdsRoot Date: Tue, 1 Sep 2026 18:43:28 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20=D1=87=D0=B5=D1=81=D1=82=D0=BD=D0=B0?= =?UTF-8?q?=D1=8F=20=D0=BF=D1=80=D0=BE=D0=B2=D0=B5=D1=80=D0=BA=D0=B0,=20?= =?UTF-8?q?=D1=87=D1=82=D0=BE=20Claude=20=D1=80=D0=B5=D0=B0=D0=BB=D1=8C?= =?UTF-8?q?=D0=BD=D0=BE=20=D0=BF=D0=BE=D0=B4=D0=BD=D1=8F=D0=BB=D1=81=D1=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- setup.ps1 | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/setup.ps1 b/setup.ps1 index a704ef8..aafa784 100644 --- a/setup.ps1 +++ b/setup.ps1 @@ -126,8 +126,16 @@ function Restart-Claude { $i = 0 while ((Get-Process -Name "Claude*" -ErrorAction SilentlyContinue) -and $i -lt 12) { Start-Sleep 1; $i++ } $exe = Find-ClaudeExe - if ($exe) { Start-Process $exe.FullName; Ok "Claude перезапущен." } - else { Warn "Не нашёл claude.exe, открой Claude вручную." } + if (-not $exe) { Warn "Не нашёл claude.exe, открой Claude вручную."; return } + Start-Process $exe.FullName + # Проверяем, что процесс реально поднялся: рапортовать успех вслепую нельзя. + $j = 0 + while (-not (Get-Process -Name "Claude*" -ErrorAction SilentlyContinue) -and $j -lt 8) { Start-Sleep 1; $j++ } + if (Get-Process -Name "Claude*" -ErrorAction SilentlyContinue) { + Ok "Claude перезапущен." + } else { + Warn "Claude не поднялся автоматически. Конфиги на месте, открой приложение вручную." + } } # ---------- ОТКАТ ----------