feat: Implement recursive storage listing and directory browsing for backups, and add a migration option to fix cross-filters.
This commit is contained in:
@@ -386,6 +386,10 @@
|
||||
}
|
||||
|
||||
if (action.type === "confirm" && message.confirmation_id) {
|
||||
// Hide buttons immediately to prevent repeated clicks
|
||||
messages = messages.map((m) =>
|
||||
m.message_id === message.message_id ? { ...m, actions: [] } : m,
|
||||
);
|
||||
const response = await confirmAssistantOperation(
|
||||
message.confirmation_id,
|
||||
);
|
||||
@@ -394,6 +398,10 @@
|
||||
}
|
||||
|
||||
if (action.type === "cancel" && message.confirmation_id) {
|
||||
// Hide buttons immediately to prevent repeated clicks
|
||||
messages = messages.map((m) =>
|
||||
m.message_id === message.message_id ? { ...m, actions: [] } : m,
|
||||
);
|
||||
const response = await cancelAssistantOperation(
|
||||
message.confirmation_id,
|
||||
);
|
||||
@@ -608,7 +616,9 @@
|
||||
<span
|
||||
class="text-[11px] font-semibold uppercase tracking-wide text-slate-500"
|
||||
>
|
||||
{message.role === "user" ? $t.assistant?.you : $t.assistant?.assistant}
|
||||
{message.role === "user"
|
||||
? $t.assistant?.you
|
||||
: $t.assistant?.assistant}
|
||||
</span>
|
||||
{#if message.state}
|
||||
<span
|
||||
|
||||
Reference in New Issue
Block a user