From 22bcd889c3c9f4446367778989f45d1a0292bd07 Mon Sep 17 00:00:00 2001 From: Tyler Gillispie Date: Tue, 25 Aug 2026 09:59:27 -0700 Subject: [PATCH] ui(sessions): simplify delegation copy and labels across sessions page and routes --- ...ephemeral-passes-and-multi-claim-events.md | 6 +-- server/routes/sessions.ts | 2 +- ui/components/SessionsPage.tsx | 45 ++++++++++--------- 3 files changed, 27 insertions(+), 26 deletions(-) diff --git a/docs/superpowers/plans/2026-08-25-ephemeral-passes-and-multi-claim-events.md b/docs/superpowers/plans/2026-08-25-ephemeral-passes-and-multi-claim-events.md index 5e49c60..f67a1a7 100644 --- a/docs/superpowers/plans/2026-08-25-ephemeral-passes-and-multi-claim-events.md +++ b/docs/superpowers/plans/2026-08-25-ephemeral-passes-and-multi-claim-events.md @@ -224,9 +224,9 @@ Deno.test("Event Cockpit & Master Kill Switch", async (t) => { `deno test server/main.test.ts --filter "Event Cockpit"` Expected: FAIL - [x] **Step 3: Implement `POST /api/events/:id/end` and - `POST /api/events/:id/extend` in `server/routes/events.ts`** Fetch all session IDs - created under the event pass, delete them from Valkey and PostgreSQL, - record in audit ledger, and mark event `is_active = false`. + `POST /api/events/:id/extend` in `server/routes/events.ts`** Fetch all + session IDs created under the event pass, delete them from Valkey and + PostgreSQL, record in audit ledger, and mark event `is_active = false`. - [x] **Step 4: Update `ui/components/SessionsPage.tsx` with Event Cockpit Deck** Display active events with live progress bar diff --git a/server/routes/sessions.ts b/server/routes/sessions.ts index 1f32555..11a9cd7 100644 --- a/server/routes/sessions.ts +++ b/server/routes/sessions.ts @@ -41,7 +41,7 @@ sessionRoutes.post("/api/sessions/delegate", async (c) => { const cleanLabel = (label && typeof label === "string" && label.trim()) ? label.trim() - : "AI Agent Session"; + : "Delegated Session"; const hours = Math.min(Math.max(Number(lifespanHours) || 1, 1), 720); // Max 30 days const expiresAt = new Date(Date.now() + hours * 3600 * 1000); diff --git a/ui/components/SessionsPage.tsx b/ui/components/SessionsPage.tsx index a850ae7..04b67fc 100644 --- a/ui/components/SessionsPage.tsx +++ b/ui/components/SessionsPage.tsx @@ -139,14 +139,13 @@ export const SessionsPage = ({ Active Sessions & Delegations

- Manage browser logins and spawn isolated sessions for AI agents and - CLI tools. + Manage browser logins and mint isolated, scoped sessions for 1-click + passes, team members, CLI tools, or AI agents.

- {/* Delegate Agent Session Drawer */} + {/* Delegate Session Drawer */}

- Spawn Delegated Agent Session + Delegate New Session

- Mint an isolated child session for an AI assistant, daemon, or CLI - without exposing your primary browser credentials. + Mint an isolated, scoped child session for 1-click magic links, + CLI tools, team members, or AI assistants without exposing your + primary passkeys.