Skip to content

fix: restore chat frontend runtime - #80

Merged
shrey16 merged 4 commits into
mainfrom
codex/hotfix-chat-frontend-runtime
Jul 21, 2026
Merged

shrey16 merged 4 commits into
mainfrom
codex/hotfix-chat-frontend-runtime

Conversation

@shrey16

@shrey16 shrey16 commented Jul 21, 2026

Copy link
Copy Markdown
Contributor

Summary

  • restore the last known-good Vite 7 frontend toolchain after the Vite 8/Rolldown upgrade produced uncaught browser startup exceptions
  • precache index.html so the Workbox navigation fallback resolves correctly
  • add a production-bundle Playwright smoke check and run it from frontend:ci

Incident evidence

The current Vite 8 build completes successfully but the emitted production bundle throws during browser startup before React can render. The new smoke check reproduces that failure against the existing toolchain and passes after the rollback.

Verification

  • RED: npm run frontend:ci under Vite 8 failed on an uncaught exception from the emitted vendor bundle
  • GREEN: clean npm ci && npm run frontend:ci under the restored toolchain passed, including headless Chromium execution and the Workbox precache assertion
  • node --test bharatcode/test/config.test.mjs — 6/6 passed
  • npm run build:data-schemas — passed
  • npm run build:api — passed (existing non-fatal TypeScript warning remains)
  • Prettier and git diff --check — passed

Risk and rollback

This is intentionally limited to the four build-tool packages, the PWA fallback manifest, and the regression smoke check. No application behavior or API contract changes are included. Reverting this PR restores the previous build pipeline.

@shrey16
shrey16 merged commit f996b7e into main Jul 21, 2026
4 checks passed
@shrey16
shrey16 deleted the codex/hotfix-chat-frontend-runtime branch July 21, 2026 16:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant