1 Commits
Author SHA1 Message Date
Algis DumbrisandClaude Opus 4.6 3820414166 fix: push subscribe sends flat key_p256dh/key_auth matching backend API
Release / Build darwin/amd64 (push) Canceled after 0s
Release / Build linux/amd64 (push) Canceled after 0s
Release / Build darwin/arm64 (push) Canceled after 0s
Release / Build linux/arm64 (push) Canceled after 0s
Release / Generate Homebrew Formula (push) Canceled after 0s
Release / GitHub Release (push) Canceled after 0s
Release / Docker Image (push) Canceled after 0s
Release / Publish to MCP Registry (push) Canceled after 0s
The browser PushSubscription nests keys under .keys but the backend
expects flat key_p256dh and key_auth fields.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-17 14:28:35 +02:00
3 changed files with 9 additions and 11 deletions
+6 -6
View File
@@ -11,30 +11,30 @@
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Instrument+Sans:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap" rel="stylesheet">
<link href="/_app/immutable/entry/start.DRWRIYgZ.js" rel="modulepreload">
<link href="/_app/immutable/chunks/BdkwYcun.js" rel="modulepreload">
<link href="/_app/immutable/entry/start.Brt_7G-i.js" rel="modulepreload">
<link href="/_app/immutable/chunks/B_GGgm-X.js" rel="modulepreload">
<link href="/_app/immutable/chunks/BjgrqnN-.js" rel="modulepreload">
<link href="/_app/immutable/chunks/CAWWRzNH.js" rel="modulepreload">
<link href="/_app/immutable/chunks/B-GqcZrE.js" rel="modulepreload">
<link href="/_app/immutable/chunks/DpGxxGDS.js" rel="modulepreload">
<link href="/_app/immutable/chunks/3PInzq4O.js" rel="modulepreload">
<link href="/_app/immutable/chunks/qakGnb92.js" rel="modulepreload">
<link href="/_app/immutable/entry/app.BZim7ID1.js" rel="modulepreload">
<link href="/_app/immutable/entry/app.n45Hd8qT.js" rel="modulepreload">
</head>
<body data-sveltekit-preload-data="hover">
<div style="display: contents">
<script>
{
__sveltekit_1ygn49r = {
__sveltekit_nj28a9 = {
base: ""
};
const element = document.currentScript.parentElement;
Promise.all([
import("/_app/immutable/entry/start.DRWRIYgZ.js"),
import("/_app/immutable/entry/app.BZim7ID1.js")
import("/_app/immutable/entry/start.Brt_7G-i.js"),
import("/_app/immutable/entry/app.n45Hd8qT.js")
]).then(([kit, app]) => {
kit.start(app, element);
});
+1 -1
View File
@@ -219,7 +219,7 @@ export const version = {
// Push notifications
export const push = {
subscribe: (subscription: { endpoint: string; keys: { p256dh: string; auth: string } }) =>
subscribe: (subscription: { endpoint: string; key_p256dh: string; key_auth: string }) =>
request<{ id: number; message: string }>('POST', '/api/push/subscribe', subscription),
unsubscribe: (endpoint: string) =>
request<{ message: string }>('DELETE', '/api/push/subscribe', { endpoint }),
+2 -4
View File
@@ -113,10 +113,8 @@
const subJson = sub.toJSON();
await pushApi.subscribe({
endpoint: sub.endpoint,
keys: {
p256dh: subJson.keys?.p256dh || '',
auth: subJson.keys?.auth || ''
}
key_p256dh: subJson.keys?.p256dh || '',
key_auth: subJson.keys?.auth || ''
});
pushEnabled = true;
}