Skip to content

fix(adev): reset webcontainer counter when webcontainer crashes#67844

Open
cyphercodes wants to merge 1 commit intoangular:mainfrom
cyphercodes:fix-webcontainer-counter-reset
Open

fix(adev): reset webcontainer counter when webcontainer crashes#67844
cyphercodes wants to merge 1 commit intoangular:mainfrom
cyphercodes:fix-webcontainer-counter-reset

Conversation

@cyphercodes
Copy link

PR Checklist

PR Type

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Documentation content changes
  • angular.dev application / infrastructure changes
  • Other... Please describe:

What is the current behavior?

When the webcontainer crashes (e.g., out of memory error), the counter was not being reset. This caused the counter to keep increasing on page refreshes, eventually showing the user a warning about too many webcontainers even when there was only one active instance.

Issue Number: #52647

What is the new behavior?

This fix adds a decreaseInstancesCounter() method to AlertManager and calls it when setErrorState is invoked, ensuring the counter accurately reflects the number of active webcontainer instances.

Does this PR introduce a breaking change?

  • Yes
  • No

Other information

This fix ensures that when a webcontainer crashes and the user refreshes the page, the counter is properly decremented so the user doesn't get a false warning about having too many webcontainers open.

When the webcontainer crashes (e.g., out of memory error), the counter was not being reset.
This caused the counter to keep increasing on page refreshes, eventually showing the user
a warning about too many webcontainers even when there was only one active instance.

This fix adds a decreaseInstancesCounter method to AlertManager and calls it when
setErrorState is invoked, ensuring the counter accurately reflects the number of
active webcontainer instances.

Fixes angular#52647
@pullapprove pullapprove bot requested a review from MarkTechson March 25, 2026 01:11
@google-cla
Copy link

google-cla bot commented Mar 25, 2026

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@google-cla google-cla bot added cla: yes and removed cla: no labels Mar 25, 2026
@leonsenft leonsenft added the area: docs-infra Angular.dev application and infrastructure label Mar 25, 2026
@ngbot ngbot bot added this to the Backlog milestone Mar 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: docs-infra Angular.dev application and infrastructure cla: yes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants