mirror of
https://github.com/NanmiCoder/cc-haha
synced 2026-07-17 13:13:35 +08:00
Browser startup previously accepted any 200 response from /health. In Vite-only runs that can be the SPA fallback HTML, which lets startup continue until a later API call fails with an opaque JSON parse error. Constraint: The H5 shell and Vite dev server can both return 200 for unknown routes. Rejected: Only improve the visible StartupError copy | it would still misclassify the backend readiness state Confidence: high Scope-risk: narrow Directive: Keep the healthcheck shape validation aligned with src/server/index.ts /health responses Tested: cd desktop && bun run test src/lib/desktopRuntime.test.ts Tested: cd desktop && bun run test src/lib/desktopRuntime.test.ts src/__tests__/generalSettings.test.tsx Tested: cd desktop && bun run lint Tested: bun run check:desktop