Skip to content

[Karakeep] Screenshot previews are blank on self-hosted v0.33.x instances #32293

Closed

Description

@guigui42

Extension

https://www.raycast.com/luolei/karakeep

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

  1. Configure the Karakeep extension with a self-hosted Karakeep API URL and valid API key.
  2. Save a URL and wait for Karakeep crawling to finish successfully.
  3. Confirm in Karakeep that the bookmark has a screenshot asset and that the web application displays its preview.
  4. Open Bookmarks in the Raycast Karakeep extension.
  5. 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/jpeg

The 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:

  1. Fetch /api/assets/{id} directly with the configured API-key header instead of routing through /_next/image.
  2. Support bannerImage or content.imageAssetId as a preview source, with screenshot as a fallback.

Activity

  1. added a commit that references this issue on Oct 20, 2026
    c02241e
  2. added a commit that references this issue on Oct 24, 2026
    d86051a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    Priority

    None yet

    Severity

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions