Repository navigation
Description
Extension
Environment
- Raycast: 2.7.3
- macOS: 27.0.1
- Karakeep CLI/API: 0.33.2, self-hosted
- Karakeep Raycast extension: 2.4.5
Description
Bookmark screenshot previews are blank in the Raycast Karakeep extension and display the camera placeholder. The same bookmarks display their screenshots or custom banners correctly in the Karakeep web application.
This reproduces with an ordinary public GitHub repository bookmark, so it does not depend on private or authenticated page content.
This appears related to #24966 and the fix in #28543, but it still reproduces on the current extension.
Steps to reproduce
- Configure the Karakeep extension with a self-hosted Karakeep API URL and valid API key.
- Save a URL and wait for Karakeep crawling to finish successfully.
- Confirm in Karakeep that the bookmark has a
screenshotasset and that the web application displays its preview. - Open Bookmarks in the Raycast Karakeep extension.
- Select the bookmark and view the detail pane.
Current behavior
The preview pane shows the blank camera placeholder.
Clearing the local preview-images cache does not resolve the problem because the next download fails in the same way.
Expected behavior
Raycast should display the authenticated Karakeep screenshot or banner image shown by the web application.
Technical findings
For the same screenshot asset:
curl -H "Authorization: Bearer $API_KEY" \
"$SERVER/api/assets/$ASSET_ID"
# HTTP 200
# Content-Type: image/jpegThe URL currently constructed by the extension fails:
curl -H "Authorization: Bearer $API_KEY" \
"$SERVER/_next/image?url=%2Fapi%2Fassets%2F$ASSET_ID&w=1200&q=75"
# HTTP 400
# The requested resource isn't a valid image.The current implementation constructs the failing optimizer URL in src/utils/screenshot.ts. Fetching /api/assets/{id} directly with the API-key header returns the valid image and avoids the optimizer failure.
There is also a related preview-selection limitation: BookmarkItem.tsx only selects assets whose type is screenshot. Karakeep's web UI commonly displays bannerImage / content.imageAssetId, including user-replaced preview banners, so those images are ignored by Raycast even when the asset is valid.
Suggested behavior:
- Fetch
/api/assets/{id}directly with the configured API-key header instead of routing through/_next/image. - Support
bannerImageorcontent.imageAssetIdas a preview source, withscreenshotas a fallback.
Metadata
Metadata
Assignees
Labels
Type
Fields
Priority
Severity
Activity
[Karakeep] Fix screenshot preview blank on self-hosted v0.33.x (closes …
[Karakeep] Fix screenshot previews blank on self-hosted v0.33.x (#32596)