fix(agents): open cards from home and align sidebar navigation

This commit is contained in:
鲨鱼辣椒 committed 2026-10-12 20:06:22 +08:00
1 parent e5d79bf37a
commit 5e99804bc2
13 files changed
+460 -27

No files matched your search

+1
View File
@@ -83,6 +83,7 @@ function AgentWorkspace() {
cloudAgentsApi.recovery().then(async state => {
if (!live) return;
setPending(state.pending);
// Explicit list entries keep the recent workspace pointer without reopening it.
if (!state.recent || location.pathname.includes('/shared/') || new URLSearchParams(location.search).has('view')) return;
const pointer = state.recent;
// Creator drafts may be unpublished; shared entry revalidates current access separately.
+1 -1
View File
@@ -44,7 +44,7 @@ export function ModuleSelection({ authRequired = true }: { authRequired?: boolea
navigate('/login');
return;
}
navigate(route);
navigate(route === '/cloud-agents' ? `${route}?view=mine` : route);
};
return (