fix: hide AI assistant bubble from text flow and use full page context for selection panel

This commit is contained in:
2026-05-07 21:01:57 +02:00
parent bbc1c62198
commit 00c5658662
2 changed files with 5 additions and 9 deletions
@@ -76,7 +76,11 @@
private async Task RequestSummary()
{
IsLoading = true;
Packet = await Coordinator.RequestSummaryAndQuizAsync(SelectedText);
var contextPrompt = !string.IsNullOrWhiteSpace(FullPageContent)
? $"ANALYSIS CONTEXT (Full Page Content):\n{FullPageContent}\n\nUSER SELECTION TO SUMMARIZE:\n"
: "";
Packet = await Coordinator.RequestSummaryAndQuizAsync($"{contextPrompt}{SelectedText}");
IsLoading = false;
}
@@ -29,14 +29,6 @@
{
<NexusTypography Variant="NexusTypography.TypographyVariant.Ebook">@((MarkupString)textSegment.Content)</NexusTypography>
}
else if (block is AiActionTriggerBlock trigger)
{
<AiAssistantBubble
ContextBlockId="@trigger.Id"
Dialogue="@trigger.Dialogue"
Actions="@trigger.ActionOptions"
FullPageContent="@GetFullPageContent()" />
}
</div>
}
</div>