From d53a12182e0900d34ca38318ee46fcd81d2c9fa5 Mon Sep 17 00:00:00 2001 From: Andras Bacsai <5845193+andrasbacsai@users.noreply.github.com> Date: Wed, 3 Dec 2025 16:33:33 +0100 Subject: [PATCH] Add localhost hint for proxy restart logs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When restarting the proxy on localhost (server id 0), shows a warning banner in the logs sidebar explaining that the connection may be temporarily lost and to refresh the browser if logs stop updating. Also cleans up notification noise by commenting out intermediate status notifications (restarting, starting, stopping) that were redundant with the visual status indicators. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- app/Livewire/Server/Navbar.php | 8 ++++---- resources/views/livewire/server/navbar.blade.php | 7 +++++++ 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/app/Livewire/Server/Navbar.php b/app/Livewire/Server/Navbar.php index 17c30e0f8..6da1edd77 100644 --- a/app/Livewire/Server/Navbar.php +++ b/app/Livewire/Server/Navbar.php @@ -75,7 +75,7 @@ public function restart() // Always use background job for all servers RestartProxyJob::dispatch($this->server); - $this->dispatch('info', 'Proxy restart initiated.'); + // $this->dispatch('info', 'Proxy restart initiated.'); // Reset the flag after a short delay to allow future restarts $this->restartInitiated = false; @@ -171,15 +171,15 @@ public function showNotification($event = null) } break; case 'stopping': - $this->dispatch('info', 'Proxy is stopping.'); + // $this->dispatch('info', 'Proxy is stopping.'); $this->lastNotifiedStatus = $this->proxyStatus; break; case 'starting': - $this->dispatch('info', 'Proxy is starting.'); + // $this->dispatch('info', 'Proxy is starting.'); $this->lastNotifiedStatus = $this->proxyStatus; break; case 'restarting': - $this->dispatch('info', 'Proxy is restarting.'); + // $this->dispatch('info', 'Proxy is restarting.'); $this->lastNotifiedStatus = $this->proxyStatus; break; case 'error': diff --git a/resources/views/livewire/server/navbar.blade.php b/resources/views/livewire/server/navbar.blade.php index 8525f5d60..b0802ed1e 100644 --- a/resources/views/livewire/server/navbar.blade.php +++ b/resources/views/livewire/server/navbar.blade.php @@ -2,6 +2,13 @@ Proxy Startup Logs + @if ($server->id === 0) +
+ Note: This is the localhost server where Coolify runs. + During proxy restart, the connection may be temporarily lost. + If logs stop updating, please refresh the browser after a few minutes. +
+ @endif