fix: chat streaming blocking the UI. extensions not showing accepted policies once accepted. (#1809)
* fix(ui): show an extension's accepted authority after it is accepted * fix(ui): keep a chat reply's streamed text when the turn is stopped or fails * feat(ui): queue chat messages sent while a turn runs
This commit is contained in:
4 files changed
+182
-107
No files matched your search
@@ -1,6 +1,6 @@
|
||||
<script setup lang="ts">
|
||||
import { computed, onMounted, ref } from "vue";
|
||||
import { Plus, Trash2 } from "@lucide/vue";
|
||||
import { ChevronRight, Plus, Trash2 } from "@lucide/vue";
|
||||
|
||||
import PageHeader from "@/base/PageHeader.vue";
|
||||
import {
|
||||
@@ -14,6 +14,7 @@ import {
|
||||
AlertDialogTitle,
|
||||
} from "@/components/ui/alert-dialog";
|
||||
import { Button } from "@/components/ui/button";
|
||||
import { Collapsible, CollapsibleContent, CollapsibleTrigger } from "@/components/ui/collapsible";
|
||||
import { Empty, EmptyHeader, EmptyTitle } from "@/components/ui/empty";
|
||||
import { Input } from "@/components/ui/input";
|
||||
import { Badge } from "@/components/ui/badge";
|
||||
@@ -83,6 +84,19 @@ const tones = {
|
||||
</p>
|
||||
<p class="text-xs text-fg-subtle">{{ extension.description }}</p>
|
||||
<p class="truncate font-mono text-xs text-fg-subtle">{{ extension.digest }}</p>
|
||||
<Collapsible v-if="extension.accepted">
|
||||
<CollapsibleTrigger as-child>
|
||||
<Button variant="ghost" size="sm" class="-ml-2 h-6 px-2 text-xs font-normal text-fg-subtle">
|
||||
<ChevronRight class="transition-transform group-data-[state=open]/button:rotate-90" />
|
||||
Accepted authority
|
||||
</Button>
|
||||
</CollapsibleTrigger>
|
||||
<CollapsibleContent>
|
||||
<ul class="font-mono text-xs text-fg-subtle">
|
||||
<li v-for="line in grants(extension.accepted)" :key="line">{{ line }}</li>
|
||||
</ul>
|
||||
</CollapsibleContent>
|
||||
</Collapsible>
|
||||
</div>
|
||||
<Badge v-if="tones[stage(extension)].tone" :variant="tones[stage(extension)].tone">{{ tones[stage(extension)].label }}</Badge>
|
||||
<div v-if="extension.pending" class="w-full rounded-md border border-border px-3 py-2">
|
||||
|
||||
Reference in new issue
Block a user