Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

fix(agent-vault): show full session label in the detail sheet

Scott Wilsonf5fabaec92d6
diff --git a/docs/documentation/platform/agent-vault/sessions-api.mdx b/docs/documentation/platform/agent-vault/sessions-api.mdx
index 98a02f52c4..a1e7b88343 100644
--- a/docs/documentation/platform/agent-vault/sessions-api.mdx
+++ b/docs/documentation/platform/agent-vault/sessions-api.mdx
@@ -57,7 +57,7 @@ curl -X POST https://app.infisical.com/api/v1/agent-vault/sessions \
- `accessBundles` takes a list, but a session can have only one access bundle, so the list must have exactly one name
- `ttl` accepts a duration of at least one minute, such as `30m`, `8h`, or `7d`, or `never`, and defaults to `7d` (see [Choose how long a session lasts](#choose-how-long-a-session-lasts) to pick a value)
-- `label` is optional and describes what the session is for, in up to 128 characters. It appears on the **Sessions** page, and you can search sessions by it
+- `label` is optional and describes what the session is for, in up to 128 characters
The response includes the session's ID, the session token, and when the session expires:
diff --git a/frontend/src/pages/agent-vault/AgentVaultSessionsPage/components/SessionDetailSheet.tsx b/frontend/src/pages/agent-vault/AgentVaultSessionsPage/components/SessionDetailSheet.tsx
index 1798a1b028..d49d31fde0 100644
--- a/frontend/src/pages/agent-vault/AgentVaultSessionsPage/components/SessionDetailSheet.tsx
+++ b/frontend/src/pages/agent-vault/AgentVaultSessionsPage/components/SessionDetailSheet.tsx
@@ -26,7 +26,6 @@ import { TAgentVaultSession } from "@app/hooks/api/agentVault/types";
import { useAgentVaultSheetState } from "@app/hooks/useAgentVaultSheetState";
import { SessionExpiry } from "./SessionExpiry";
-import { SessionLabel } from "./SessionLabel";
import { SessionLogsPanel } from "./SessionLogsPanel";
import { SessionStatusBadge } from "./SessionStatusBadge";
@@ -178,9 +177,7 @@ export const SessionDetailSheet = ({ session, isPending = false, onRevoke }: Pro
{session.label && (
<Detail className="min-w-0 border-t border-border px-4 py-3">
<DetailLabel>Label</DetailLabel>
- <DetailValue className="min-w-0">
- <SessionLabel label={session.label} />
- </DetailValue>
+ <DetailValue className="min-w-0 break-words">{session.label}</DetailValue>
</Detail>
)}
</div>