Skip to content

Commit 7fcfe49

Browse files
committed
Fixing divergence from main branch
Signed-off-by: Dave Mackey <dave@davemackey.net>
1 parent 44680ac commit 7fcfe49

3 files changed

Lines changed: 8 additions & 9 deletions

File tree

src/plugins/chat/public/components/chat_window.tsx

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -568,15 +568,6 @@ const ChatWindowContent = React.forwardRef<ChatWindowInstance, ChatWindowProps>(
568568
{...enhancedProps}
569569
/>
570570

571-
{/* Sticky confirmation message - positioned above chat input */}
572-
{pendingConfirmation && (
573-
<ConfirmationMessage
574-
request={pendingConfirmation}
575-
onApprove={handleApproveConfirmation}
576-
onReject={handleRejectConfirmation}
577-
/>
578-
)}
579-
580571
{fileAttachments.length > 0 && (
581572
<div className="chatWindow__fileAttachments" aria-label="Attached files">
582573
<EuiFlexGroup gutterSize="xs" wrap responsive={false}>

src/plugins/chat/public/components/message_row.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,10 @@ export const MessageRow: React.FC<MessageRowProps> = ({
8282
if (block.type === 'text' && block.text) {
8383
return <Markdown key={index} markdown={block.text} openLinksInNewTab={true} />;
8484
}
85+
// Handle plain text blocks (for backward compatibility)
86+
if (block.text) {
87+
return <Markdown key={index} markdown={block.text} openLinksInNewTab={true} />;
88+
}
8589
return null;
8690
})}
8791
</>

src/plugins/chat/public/services/chat_service.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -631,6 +631,10 @@ export class ChatService {
631631
return messages.slice(0, endIndex);
632632
}
633633

634+
public saveCurrentChatStatePublic(): void {
635+
this.saveCurrentChatState();
636+
}
637+
634638
public getCurrentMessages(): Message[] {
635639
return this.currentMessages;
636640
}

0 commit comments

Comments
 (0)