mirror of
https://github.com/getpaseo/paseo.git
synced 2026-07-29 12:01:31 +00:00
EXPO_PUBLIC_LOCAL_DAEMON is a developer directive that the app must show the configured host even when disconnected, so the user can see and diagnose connection failures. The previous bootstrap conflated this with the default "auto-add localhost:6767 if a daemon answers" behavior, and the silent inner catch hid every failure mode. - Split bootstrapLocalhost into bootstrapDefaultLocalhost (probe-then- upsert, unchanged) and bootstrapConfiguredOverride (unconditional upsert with placeholder serverId local:<endpoint>). - Reconcile the placeholder to the daemon's real serverId in place when the probe receives server-info; rekey controllers and listeners. - Replace the silent catch with console.warn carrying endpoint and error. - On every override boot, purge any host owning the override connection under a non-matching serverId so a fresh dev daemon (rotated keypair) no longer leaves the registry pointing at a defunct host. - Prune cross-endpoint placeholders when EXPO_PUBLIC_LOCAL_DAEMON changes. Refs #637.