diff --git a/src/Web/StellaOps.Web/src/app/features/advisory-ai/chat/chat.component.ts b/src/Web/StellaOps.Web/src/app/features/advisory-ai/chat/chat.component.ts index 0c867d57d..d39601e1d 100644 --- a/src/Web/StellaOps.Web/src/app/features/advisory-ai/chat/chat.component.ts +++ b/src/Web/StellaOps.Web/src/app/features/advisory-ai/chat/chat.component.ts @@ -596,7 +596,11 @@ export class ChatComponent implements OnInit, OnDestroy { }); // Start or load conversation - if (this.conversationId) { + const existingConv = this.chatService.conversation(); + if (existingConv && this.conversationId && existingConv.conversationId === this.conversationId) { + // Already have this conversation in state — just resume, no API call needed + this.trySendPendingInitialMessage(); + } else if (this.conversationId) { this.chatService.getConversation(this.conversationId).subscribe(() => { this.trySendPendingInitialMessage(); }); diff --git a/src/Web/StellaOps.Web/src/app/features/release-orchestrator/releases/create-hotfix/create-hotfix.component.ts b/src/Web/StellaOps.Web/src/app/features/release-orchestrator/releases/create-hotfix/create-hotfix.component.ts index b59c76567..33bab80ef 100644 --- a/src/Web/StellaOps.Web/src/app/features/release-orchestrator/releases/create-hotfix/create-hotfix.component.ts +++ b/src/Web/StellaOps.Web/src/app/features/release-orchestrator/releases/create-hotfix/create-hotfix.component.ts @@ -1,3 +1,4 @@ +import { SlicePipe } from '@angular/common'; import { Component, inject, signal, computed, ChangeDetectionStrategy } from '@angular/core'; import { FormsModule } from '@angular/forms'; import { Router, RouterModule } from '@angular/router'; @@ -12,7 +13,7 @@ import { BundleOrganizerApi, type ReleaseControlBundleVersionDetailDto } from '. selector: 'app-create-hotfix', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, - imports: [FormsModule, RouterModule], + imports: [FormsModule, RouterModule, SlicePipe], template: `