From c8d46b05ea3e006a5a20584755aef277a47f5050 Mon Sep 17 00:00:00 2001 From: Nate Sesti <33237525+sestinj@users.noreply.github.com> Date: Mon, 21 Jul 2025 13:42:16 -0700 Subject: [PATCH 1/3] Update src/ui/hooks/useChat.ts Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com> --- src/ui/hooks/useChat.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ui/hooks/useChat.ts b/src/ui/hooks/useChat.ts index d0e209089..00159eea2 100644 --- a/src/ui/hooks/useChat.ts +++ b/src/ui/hooks/useChat.ts @@ -282,7 +282,7 @@ export function useChat({ }, 1000); } else { const text = await response.text(); - console.log("FAILURE: ", text); + logger.error("Remote shutdown failed:", text); setMessages((prev) => [ ...prev, { From 86517405e144062cc650652f530c6a1504637403 Mon Sep 17 00:00:00 2001 From: Nate Sesti <33237525+sestinj@users.noreply.github.com> Date: Mon, 21 Jul 2025 13:42:36 -0700 Subject: [PATCH 2/3] Update src/ui/hooks/useChat.ts Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com> --- src/ui/hooks/useChat.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ui/hooks/useChat.ts b/src/ui/hooks/useChat.ts index 00159eea2..21bfab9c8 100644 --- a/src/ui/hooks/useChat.ts +++ b/src/ui/hooks/useChat.ts @@ -259,7 +259,7 @@ export function useChat({ } // Handle /exit command in remote mode - if (isRemoteMode && message.trim() === "/exit") { + if (isRemoteMode && remoteUrl && message.trim() === "/exit") { try { // Send GET request to /exit endpoint const response = await fetch(`${remoteUrl}/exit`, { From b0b69fdf5977f1f5cf778565e515efa49a951253 Mon Sep 17 00:00:00 2001 From: Nate Sesti <33237525+sestinj@users.noreply.github.com> Date: Mon, 21 Jul 2025 13:43:45 -0700 Subject: [PATCH 3/3] Update src/ui/hooks/useChat.ts Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com> --- src/ui/hooks/useChat.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ui/hooks/useChat.ts b/src/ui/hooks/useChat.ts index 21bfab9c8..1ae0aba89 100644 --- a/src/ui/hooks/useChat.ts +++ b/src/ui/hooks/useChat.ts @@ -261,7 +261,7 @@ export function useChat({ // Handle /exit command in remote mode if (isRemoteMode && remoteUrl && message.trim() === "/exit") { try { - // Send GET request to /exit endpoint + // Send POST request to /exit endpoint const response = await fetch(`${remoteUrl}/exit`, { method: "POST", });