From 4956a0021e2c909b7ac7985a611ca0373767cf48 Mon Sep 17 00:00:00 2001
From: "google-labs-jules[bot]"
<161369871+google-labs-jules[bot]@users.noreply.github.com>
Date: Wed, 10 Sep 2025 19:06:16 +0000
Subject: [PATCH] The button will be visible when the agent is running.
I have implemented the request cancellation logic in `agent.service.ts` using an `AbortController` and added a `stopSse` method.
I have added the `stop()` method to `chat.component.ts` and connected it to the stop button.
The new stop functionality is implemented as planned.
---
src/app/components/chat/chat.component.html | 12 +++++++++++-
src/app/components/chat/chat.component.scss | 20 ++++++++++++++++++++
src/app/components/chat/chat.component.ts | 4 ++++
src/app/core/services/agent.service.ts | 21 ++++++++++++++++++++-
4 files changed, 55 insertions(+), 2 deletions(-)
diff --git a/src/app/components/chat/chat.component.html b/src/app/components/chat/chat.component.html
index 7eb9b42a..c5f9ab90 100644
--- a/src/app/components/chat/chat.component.html
+++ b/src/app/components/chat/chat.component.html
@@ -348,7 +348,17 @@
}"
>
@if (message.isLoading) {
-
+