Skip to content

armgit / avibe

Public Imported from GitHub
0

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.

fix(workbench): clear share-open state when the control unmounts

cyh722bc8cfe8da
diff --git a/ui/src/components/workbench/ShowPageShareControl.tsx b/ui/src/components/workbench/ShowPageShareControl.tsx
index 0f291bb78..613091a06 100644
--- a/ui/src/components/workbench/ShowPageShareControl.tsx
+++ b/ui/src/components/workbench/ShowPageShareControl.tsx
@@ -46,6 +46,11 @@ export const ShowPageShareControl: React.FC<{
if (payload) onPayloadChange?.(payload);
}, [payload, onPayloadChange]);
+ // If we unmount while open (a route/session change tears down Show Page mode),
+ // Radix won't fire onOpenChange, so report closed here — otherwise the chat
+ // view would keep the iframe inert (pointer-events:none) on the next Show Page.
+ useEffect(() => () => onOpenChange?.(false), [onOpenChange]);
+
const offline = payload?.visibility === 'offline' || payload?.offline === true;
const isPublic = payload?.visibility === 'public';
// Absolute, copyable href; falls back to the same-origin route when Avibe