Skip to content

feat: reconnect extension to dev server after connection drops - #2750

Open
fkatsuhiro wants to merge 1 commit into
wxt-dev:mainfrom
fkatsuhiro:feat/auto-reconnect-devserver
Open

fkatsuhiro wants to merge 1 commit into
wxt-dev:mainfrom
fkatsuhiro:feat/auto-reconnect-devserver

Conversation

@fkatsuhiro

@fkatsuhiro fkatsuhiro commented Nov 15, 2026 •

Copy link
Copy Markdown
Collaborator

Overview

When webExt.disabled: true, the background never reconnected to the dev server after its WebSocket closed. On close, it now sets an isReconnecting flag and retries every 3000ms on open, that flag distinguishes a normal first connection from a reconnection. Only on reconnection does it call browser.runtime.reload(), so builds made while disconnected are picked up.

Manual Testing

issue.2707.after.fixed-compressed.mp4

Related Issue

This PR closes #2707

@netlify

netlify Bot commented Nov 15, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for creative-fairy-df92c4 ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit 4a0ac46
🔍 Latest deploy log https://app.netlify.com/projects/creative-fairy-df92c4/deploys/6af9ade28c003c0e32544f11
😎 Deploy Preview https://deploy-preview-2750--creative-fairy-df92c4.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@coderabbitai

coderabbitai Bot commented Nov 15, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: a46cc080-9b1f-4676-8aef-293805036da3

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pkg/wxt Includes changes to the `packages/wxt` directory

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Dev mode: reconnect the background's dev-server WebSocket after it closes

1 participant