Skip to content

Commit a477c86

Browse files
hoonjicopybara-github
authored andcommitted
Ensures update immediately after pending event dialog close
PiperOrigin-RevId: 813043032
1 parent 86157ad commit a477c86

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/app/components/chat/chat.component.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -896,6 +896,7 @@ export class ChatComponent implements OnInit, AfterViewInit, OnDestroy {
896896
if (t) {
897897
this.removeFinishedLongRunningEvents(t.events);
898898
this.processRunSseResponse(t.response);
899+
this.changeDetectorRef.detectChanges();
899900
}
900901
});
901902
}

src/utils/url-util.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ export class URLUtil {
4141
}
4242

4343
static getWSServerUrl(): string {
44-
let url = this.getApiServerBaseUrl();
44+
let url = URLUtil.getApiServerBaseUrl();
4545
// For adk web, when the api server is not set, use the current host
4646
if (!url || url == '') {
4747
return window.location.host;

0 commit comments

Comments
 (0)