Skip to content

fix(updates): let the What's new panel read the release it asks for - #235

Merged
JeffreyJYZ merged 1 commit into
mainfrom
fix/whats-new-csp
Nov 22, 2026
Merged

JeffreyJYZ merged 1 commit into
mainfrom
fix/whats-new-csp

Conversation

@jyzbot

@jyzbot jyzbot commented Nov 22, 2026

Copy link
Copy Markdown
Collaborator

The panel said "No release notes published for this version" on a release that has notes, and latest.json carried them too.

Cause, confirmed rather than assumed: the tag mapping and the GitHub body shape were both correct; the webview fetch to https://api.github.com was refused by the window CSP, whose connect-src allowed only 'self' ipc: http://ipc.localhost. fetchReleaseNotes caught that and returned null, which the panel renders as "no notes".

connect-src now names exactly that one origin. No other directive changed and https: was not opened wholesale — a Rust route was considered and rejected because the crate tree carries no HTTP stack, so it would have meant adding one for a read-only GET.

src/lib/updates/csp.test.ts reads the shipped tauri.conf.json, captures the URL fetchReleaseNotes actually builds, and asserts that origin is allowed while https: is not. Red before the config change (0 pass / 2 fail), green after.

Still open and deliberately not fixed here: a refused fetch and an empty body both render "No release notes published", so a future block would look exactly like this bug.

@vercel

vercel Bot commented Nov 22, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
quarry-docs Ready Ready Preview Nov 22, 2026 3:38am UTC

@JeffreyJYZ
JeffreyJYZ merged commit afab278 into main Nov 22, 2026
6 checks passed
@JeffreyJYZ
JeffreyJYZ deleted the fix/whats-new-csp branch November 22, 2026 03:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants