diff --git a/desktop/src/features/agents/ui/PersonaShareDialog.tsx b/desktop/src/features/agents/ui/PersonaShareDialog.tsx
index c641de9c70..5cf4f9ea3b 100644
--- a/desktop/src/features/agents/ui/PersonaShareDialog.tsx
+++ b/desktop/src/features/agents/ui/PersonaShareDialog.tsx
@@ -37,10 +37,13 @@ import {
Dialog,
DialogClose,
DialogContent,
+ DialogDescription,
DialogHeader,
DialogTitle,
} from "@/shared/ui/dialog";
+import { Separator } from "@/shared/ui/separator";
import { Spinner } from "@/shared/ui/spinner";
+import { Switch } from "@/shared/ui/switch";
import {
formatShareRecipientName,
@@ -63,7 +66,7 @@ type PersonaShareDialogProps = {
};
type SnapshotShareDialogProps = {
- afterLink?: React.ReactNode;
+ beforeExport?: React.ReactNode;
displayName: string;
encodeSnapshot: (
memoryLevel: SnapshotMemoryLevel,
@@ -198,7 +201,6 @@ function MemoryShareConfirmation({
function ShareLevelControl({
ariaLabel,
disabled,
- hasMemoryOptions,
testId,
value,
options,
@@ -206,27 +208,11 @@ function ShareLevelControl({
}: {
ariaLabel: string;
disabled: boolean;
- hasMemoryOptions: boolean;
testId: string;
value: SnapshotMemoryLevel;
options: { value: SnapshotMemoryLevel; label: string }[];
onChange: (level: SnapshotMemoryLevel) => void;
}) {
- if (!hasMemoryOptions) {
- // Nothing to choose from, so there is no dropdown to open. State the
- // outcome rather than naming the sole option: the memory-level labels
- // ("Agent only", "+ core memory", …) are comparative and only make sense
- // when the alternatives are actually offered.
- return (
-
- No memories included
-
- );
- }
-
return (
-
+
Share {displayName}
+
+ Anyone you share this {itemLabel} with will receive a copy they
+ can add and use. Changes you make later won’t sync.
+
-
- They’ll receive a copy they can add and use. Changes you make
- later won’t sync.
-