mirror of
https://github.com/HeyPuter/puter.git
synced 2026-11-23 14:17:06 +00:00
* Show recommended apps in the app browser embed without a session /embed/apps only worked for a signed-in user; without a session it showed an unavailable state. The route now puts the recommended apps (RecommendedAppsService) in the page's config as guestApps, and when the embed finds no session it shows those, without loading puter.js or reading installed apps, folders, or saved order. Selecting one opens it at the same URL a signed-in launch uses, with no opener and no token on offer, so the app signs in on its own; apps that need the desktop open /app/<name>. Signed-in behavior is unchanged. createAppBrowser takes a guestApps option for this, and appTabLaunch's URL building is shared between launchAppInTab and the new guestAppLaunchUrl. * Show the app browser embed's error state when the session lookup fails Only a 401 from /get-gui-token now means there is no session. A rate limit or server error shows the unavailable state, as before, instead of the signed-out list of recommended apps. * Let the app browser embed find no session when storage is refused Reading local storage can throw when the browser blocks site data. The embed now falls back to the session cookie, as it does for empty storage, so a visitor without a session sees the recommended apps instead of the unavailable state. * Fix the app browser embed doc's broken sentence about puterOrigin