+ {/* Agent selector */}
+
+
+
+ {selectedAgent?.workspace && (
+
{selectedAgent.workspace}
+ )}
+
+
+ {/* Scope selector */}
+
+
+
+
+ {knownUserIds.length > 0 && (
+
+ )}
+
+
+ {scopeMode === "existing" && knownUserIds.length > 0 && (
+
+ )}
+ {scopeMode === "custom" && (
+
setCustomUserId(e.target.value)}
+ placeholder="e.g. group:telegram:-100123456"
+ className="font-mono text-sm"
+ />
+ )}
+
+ Global = shared across all users. Personal = scoped to a specific user or group chat.
+
+
+
+ {/* Path */}
+
+
+ setPath(e.target.value)}
+ placeholder="e.g. notes/project-overview.md"
+ className="font-mono text-sm"
+ />
+
+
+ {/* Content */}
+
+
+
+
+
+
+
+
+
+ {error &&
{error}
}
+
+
+