From 6427903f9f4ab22dcd4215761f09deea1eaa9462 Mon Sep 17 00:00:00 2001 From: Gabriel Date: Tue, 22 Apr 2025 18:29:17 -0300 Subject: [PATCH] feat(console): save command history in session (#1282) --- app/Filament/Server/Widgets/ServerConsole.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/Filament/Server/Widgets/ServerConsole.php b/app/Filament/Server/Widgets/ServerConsole.php index 9560bf2e7..20d17e719 100644 --- a/app/Filament/Server/Widgets/ServerConsole.php +++ b/app/Filament/Server/Widgets/ServerConsole.php @@ -11,6 +11,7 @@ use App\Services\Nodes\NodeJWTService; use App\Services\Servers\GetUserPermissionsService; use Filament\Widgets\Widget; use Illuminate\Support\Arr; +use Livewire\Attributes\Session; use Livewire\Attributes\On; class ServerConsole extends Widget @@ -26,6 +27,7 @@ class ServerConsole extends Widget public ?User $user = null; /** @var string[] */ + #[Session(key: 'server.{server.id}.history')] public array $history = []; public int $historyIndex = 0;