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.

Merge origin/master into codex-integrate-org-into-master

Max34271930ede6
diff --cc ui/src/components/workbench/AgentsPage.tsx
index 042fb3c00,803d78953..c2cce4fa4
--- a/ui/src/components/workbench/AgentsPage.tsx
+++ b/ui/src/components/workbench/AgentsPage.tsx
@@@ -73,8 -68,26 +79,27 @@@ export const AgentsPage: React.FC = ()
const { t } = useTranslation();
const api = useApi();
const { showToast } = useToast();
+ const { capabilities, remote } = useInstanceAuthorization();
- const [agentsTab, setAgentsTab] = useState<AgentsTabKey>('definitions');
+ // General navigation (sidebar / nav / capability tabs) resumes the tab the user
+ // left the page on; a fresh browser opens Definitions. A contextual caller that
+ // needs a specific tab passes ``?tab=`` and wins over the memory — the tab it
+ // asked for is a destination, not a choice the user made, so it is deliberately
+ // NOT written back to the memory.
+ const [searchParams] = useSearchParams();
+ const tabParam = searchParams.get('tab');
+ const [agentsTab, setAgentsTab] = useState<AgentsTabKey>(() => resolveAgentsTab(tabParam));
+ // One-way URL -> state, keyed on the param so a later user tab click isn't
+ // yanked back: both a contextual link arriving while this page is already
+ // mounted, and that param going away again (the sidebar link from a pinned URL
+ // changes the URL without remounting) are param changes, and the second one is
+ // bare navigation — back to the remembered tab.
+ useEffect(() => {
+ setAgentsTab(resolveAgentsTab(tabParam));
+ }, [tabParam]);
+ const selectAgentsTab = useCallback((next: AgentsTabKey) => {
+ setAgentsTab(next);
+ writeAgentsTab(next);
+ }, []);
const [runningActiveCount, setRunningActiveCount] = useState<number | null>(null);
const [eventBridgeConnected, setEventBridgeConnected] = useState(false);
const [agents, setAgents] = useState<VibeAgentBrief[]>([]);