Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.
TypeScript acmeagentsai-agentscertificate-managementdevsecopsenvironment-variableskubernetesopen-sourcepampkipostgresprivate-caprivileged-access-managementsecret-managementsecret-managersecretssecrets-managementsecuritysecurity-toolsvault
fix(agent-vault): base the admin sample session on the sessions count alone
Scott Wilson3a2608195ad9
diff --git a/frontend/src/components/agent-vault/SetupChecklist/useAgentVaultSetupProgress.ts b/frontend/src/components/agent-vault/SetupChecklist/useAgentVaultSetupProgress.tsindex c3487134d9..585ad98c8f 100644--- a/frontend/src/components/agent-vault/SetupChecklist/useAgentVaultSetupProgress.ts+++ b/frontend/src/components/agent-vault/SetupChecklist/useAgentVaultSetupProgress.ts@@ -55,6 +55,7 @@ export const useAgentVaultSetupProgress = () => {const hasConnectedProxy = Boolean(proxies.data?.proxies.some((proxy) => proxy.heartbeat));const newestBundle = newestBundles.data?.accessBundles[0];const hasService = (fullestBundles.data?.accessBundles[0]?.serviceCount ?? 0) > 0;+ const isSessionCountLoaded = Boolean(sessions.data);const hasSession = (sessions.data?.totalCount ?? 0) > 0;const completedCount = [hasConnectedProxy, Boolean(newestBundle), hasService, hasSession].filter(Boolean@@ -80,6 +81,7 @@ export const useAgentVaultSetupProgress = () => {hasConnectedProxy,newestBundle,hasService,+ isSessionCountLoaded,hasSession,completedCount,nextStep: isLoaded ? nextStep : nulldiff --git a/frontend/src/pages/agent-vault/AgentVaultSessionsPage/AgentVaultSessionsPage.tsx b/frontend/src/pages/agent-vault/AgentVaultSessionsPage/AgentVaultSessionsPage.tsxindex ba2a9373b8..f524c0e8b4 100644--- a/frontend/src/pages/agent-vault/AgentVaultSessionsPage/AgentVaultSessionsPage.tsx+++ b/frontend/src/pages/agent-vault/AgentVaultSessionsPage/AgentVaultSessionsPage.tsx@@ -179,7 +179,7 @@ export const AgentVaultSessionsPage = () => {// An admin sees the sample only while the org has no session at all. A member can't list the org's// sessions, so they see it while they have none of their own.const isSampleShown =- !isFiltered && (!isAdmin || (setupProgress.isLoaded && !setupProgress.hasSession));+ !isFiltered && (!isAdmin || (setupProgress.isSessionCountLoaded && !setupProgress.hasSession));const startSetup = () => {setupProgress.restore();setIsSampleOpen(false);