Make keep-prompt snippets clickable and allow renaming the start still.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Towsty
2026-08-31 21:42:29 -05:00
co-authored by Cursor
parent 350a0aeb45
commit 835a7bcd68
3 changed files with 184 additions and 38 deletions
+12
View File
@@ -34,6 +34,18 @@
v-else
class="min-h-0 flex-1 overflow-y-auto whitespace-pre-wrap rounded-2xl border border-white/10 bg-zinc-900 px-4 py-3 text-base leading-relaxed text-zinc-200 [overflow-wrap:anywhere]"
>{{ text }}</div>
<div v-if="editable && keepItems.length" class="mt-3 flex flex-wrap gap-1.5">
<button
v-for="item in keepItems"
:key="item.id"
type="button"
class="max-w-full truncate rounded-full border border-white/10 px-2.5 py-1 text-xs text-zinc-300 hover:border-amber-300/40 hover:text-amber-100"
:title="item.text"
@click="onKeepInsert(item)"
>
{{ item.label }}
</button>
</div>
</div>
</Teleport>
</template>