mirror of
https://github.com/NanmiCoder/cc-haha
synced 2026-07-18 13:23:33 +08:00
The desktop notification poller fired on mount, racing the bootstrap that resolves the dynamic server URL and confirms /health. Its first requests hit the uninitialized default base URL and failed with "Failed to fetch", logging spurious client_api_request_failed warnings to the diagnostics panel. Add a whenDesktopServerReady() signal resolved once initializeDesktopServerUrl sets the base URL and the healthcheck passes, and gate the poller on it so it only starts once the server is reachable. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>