## Summary
Fixed the "workspace not found" error when performing actions on non-selected workspaces.
**Root cause**: The `getWorkspaceFromCache()` function only checked the React Query cache, but only the currently selected workspace had its full data cached.
**Solution**: Modified the helper function to fetch from the API when data isn't in cache.
**File modified**: `frontend/src/components/ui-new/actions/index.ts`
**Changes**:
1. Renamed `getWorkspaceFromCache` → `getWorkspace` and made it async
2. Added fallback to `attemptsApi.get(workspaceId)` when cache miss occurs
3. Updated all 6 call sites to use `await getWorkspace()`:
- `RenameWorkspace` (line 215)
- `PinWorkspace` (line 229)
- `ArchiveWorkspace` (line 246)
- `DeleteWorkspace` (line 281)
- `OpenInOldUI` (line 489)
- `GitCreatePR` (line 630)