Make your computer a home for your AI partner. Avibe is the local-first Agent OS: Vibey, its built-in AI partner, works out of the box, and Claude Code, Codex & OpenCode run unchanged beside it — reach them from your browser, phone, or any chat app.
Python agentagent-osaiai-agentsai-partnerchatopsclaudeclaude-codecodexdevtoolsdiscord-botlark-botllmlocal-firstlong-term-memoryopencodeslack-botvibe-codingvibeywechat
fix(workbench): replace share visibility toggle with an access dropdown
cyh7b6a88d89219
diff --git a/ui/src/components/workbench/ShowPageShareControl.tsx b/ui/src/components/workbench/ShowPageShareControl.tsxindex 40deb981a..edaa761f2 100644--- a/ui/src/components/workbench/ShowPageShareControl.tsx+++ b/ui/src/components/workbench/ShowPageShareControl.tsx@@ -5,7 +5,7 @@ import { Check, Copy, Loader2, Share2 } from 'lucide-react';import { Button } from '../ui/button';import { Input } from '../ui/input';import { Popover, PopoverContent, PopoverTrigger } from '../ui/popover';-import { Switch } from '../ui/switch';+import { Select } from '../ui/select';import { useApi } from '../../context/ApiContext';import { copyTextToClipboard } from '../../lib/utils';import { copyHref, type ShowPageLinkInfo } from '../../lib/showPageLinks';@@ -70,10 +70,10 @@ export const ShowPageShareControl: React.FC<{if (next) refresh();};- const toggleVisibility = (nextPublic: boolean) => {+ const setVisibilityTo = (next: string) => {setBusy(true);api- .setShowPageVisibility(sessionId, nextPublic ? 'public' : 'private')+ .setShowPageVisibility(sessionId, next).then((res: ShowPagePayload) => {// Authoritative server state: always apply it, and invalidate any// in-flight refresh read so a stale read can't revert us afterwards.@@ -165,21 +165,24 @@ export const ShowPageShareControl: React.FC<{)}</div>- <div className="flex items-center justify-between gap-3">- <div className="min-w-0">- <div className="text-sm">- {isPublic ? t('chat.showPage.visibilityPublic') : t('chat.showPage.visibilityPrivate')}- </div>- <div className="text-xs text-muted">- {isPublic ? t('chat.showPage.publicDesc') : t('chat.showPage.privateDesc')}- </div>+ <div>+ <div className="flex items-center justify-between gap-3">+ <span className="text-sm">{t('chat.showPage.access')}</span>+ <Select+ value={isPublic ? 'public' : 'private'}+ disabled={busy}+ onChange={(e) => setVisibilityTo(e.target.value)}+ wrapperClassName="w-auto"+ className="h-8 text-sm"+ aria-label={t('chat.showPage.access')}+ >+ <option value="private">{t('chat.showPage.visibilityPrivate')}</option>+ <option value="public">{t('chat.showPage.visibilityPublic')}</option>+ </Select></div>- <Switch- checked={isPublic}- disabled={busy}- onCheckedChange={toggleVisibility}- label={t('chat.showPage.visibilityPublic')}- />+ <p className="mt-1.5 text-xs text-muted">+ {isPublic ? t('chat.showPage.publicDesc') : t('chat.showPage.privateDesc')}+ </p></div>{payload && isPublic && !payload.url_available && (diff --git a/ui/src/i18n/en.json b/ui/src/i18n/en.jsonindex ce7ff537e..9f53158b6 100644--- a/ui/src/i18n/en.json+++ b/ui/src/i18n/en.json@@ -1786,6 +1786,7 @@"shareTitle": "Share this Show Page","copyLink": "Copy link","nativeShare": "Share…",+ "access": "Access","visibilityPublic": "Public","visibilityPrivate": "Private","publicDesc": "Anyone with the link can view",diff --git a/ui/src/i18n/zh.json b/ui/src/i18n/zh.jsonindex e34d84b67..d45986a44 100644--- a/ui/src/i18n/zh.json+++ b/ui/src/i18n/zh.json@@ -1785,6 +1785,7 @@"shareTitle": "分享这个 Show Page","copyLink": "复制链接","nativeShare": "系统分享",+ "access": "权限","visibilityPublic": "公开","visibilityPrivate": "私有","publicDesc": "任何人都可以通过链接查看",