dcd38225db61

diag: log manifest exchange for mesh-propagation investigation

time
2026-07-31 18:40 UTC · 2 months ago
machine
koh2
parent
1f39c16ea27b
2 files kepr.build+4 −0src/background/sync-vault-adapter.ts+12 −4
kepr.build+4 −0
@@ -0,0 +1,4 @@1+command = npm run build2+output = dist/fonts/Inter-Light.woff23+trigger = on-promote4+platforms = native

view file

src/background/sync-vault-adapter.ts+12 −4
@@ -224,10 +224,18 @@224224 225225     async applyIncomingDeviceManifest(manifest, authenticatedRemoteStaticPublicKey) {226226       requireUnlocked();227-      await applyVerifiedPeerManifest(228-        manifest,229-        authenticatedRemoteStaticPublicKey,230-      );227+      // ponytail: temporary mesh-propagation diagnostic, strip before save228+      console.info("[Peach diag] applyIncomingDeviceManifest: issuerDeviceId=" + manifest?.body?.issuerDeviceId + " devices=" + (manifest?.body?.devices ?? []).map((d) => d.deviceId).join(",") + " revoked=" + (manifest?.body?.revoked ?? []).length);229+      try {230+        await applyVerifiedPeerManifest(231+          manifest,232+          authenticatedRemoteStaticPublicKey,233+        );234+      } catch (diagError) {235+        console.info("[Peach diag] applyVerifiedPeerManifest threw:", diagError);236+      }237+      const all = await listPairedDevices();238+      console.info("[Peach diag] post-manifest paired-devices:", all.map((d) => d.deviceId + "/" + d.trustSource).join(","));231239     },232240   };233241 }

view file