fix patch feat/phase-2g-bundle
AI Agent git-import/068377df · 107 days ago · Apr 10, 2026 · Diff

fix: image proxy JWT fallback for broken renders + Connect GitHub hint in toolbar

Two UX/correctness fixes:

1. rewriteGitHubImageUrls: when _imageProxyToken is empty (fetch failed or not yet resolved), fall back to the session JWT from localStorage. The gateway already accepts a full JWT in ?token= via the backward-compat path added in the previous fix. This prevents broken image links for private-repo images when the signed token isn't cached yet.

2. Media toolbar: when the user has write access but GitHub is not connected, show a dashed "Connect GitHub to upload images" hint with a tooltip instead of rendering nothing. New .media-toolbar-hint CSS class styles it as muted and cursor:help.

sha256:cf147055b60cf08ea97856ee0cc1c5308a88c2a8385ccab5dde9b8c9ba97932f sha
sha256:e55f5d00c7735325c23974b01671da16be0c2bc8b2333af6619b7980745702d4 snapshot
← Older Oldest on feat/phase-2g-bundle
All commits
Newer → Latest on feat/phase-2g-bundle

0 comments

No comments yet. Be the first to start the discussion.

To add a comment, use the Muse CLI: muse hub commit comment sha256:cf147055b60cf08ea97856ee0cc1c5308a88c2a8385ccab5dde9b8c9ba97932f --body "your comment"