Skip to content

fix: skip full reload in workers - #273

Merged
chenjiahan merged 2 commits into
mainfrom
chenjiahan/fix-worker-live-reload
Oct 26, 2026
Merged

chenjiahan merged 2 commits into
mainfrom
chenjiahan/fix-worker-live-reload

Conversation

@chenjiahan

@chenjiahan chenjiahan commented Oct 26, 2026 •

Copy link
Copy Markdown
Member

Summary

The dev-server client calls location.reload() in Workers after rebuilds or static-file changes, but WorkerLocation has no reload() method. Skip both full-reload paths when document is unavailable, preserving page reloads and Worker HMR notifications.

Related Links

Closes #271

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 26, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-26T05:24:11.395194Z ca86794 New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chenjiahan
chenjiahan merged commit 85cb95c into main Oct 26, 2026
3 checks passed
@chenjiahan
chenjiahan deleted the chenjiahan/fix-worker-live-reload branch October 26, 2026 05:32
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.

Live reload throws "rootWindow.location.reload is not a function" inside Web Workers

1 participant