fix: hide AI assistant bubble from text flow and use full page context for selection panel
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user