Repository navigation
refactor(bootstrap): remove redundant stopping flag - #1909
Merged
Merged
Conversation
Contributor
SummaryThe following content is AI-generated and provides a summary of the pull request: Refactor: Remove Redundant
|
Contributor
There was a problem hiding this comment.
The PR removes the try/finally guard from doStop along with the now-redundant stopping flag, but this leaves a correctness hole: if any await in doStop rejects, this.started is never reset to false, leaving the instance in a permanently inconsistent state on error paths. The same try/finally pattern is still correctly used in doStart and should be preserved in doStop as well.
PR Bot Information
Version: 1.25.0
- Event Trigger:
pull_request.opened - Correlation ID:
9103fb08-5d4e-43ff-9ee1-95e91afb0de1 - File Content Strategy: Full file content
- LLM:
anthropic--claude-4.6-sonnet - Agent Instructions:
jerome-benoit
force-pushed
the
refactor/bootstrap-remove-stopping-flag
branch
from
June 17, 2026 00:53
aad09e4 to
58c7a40
Compare
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Bootstrap.stoppingfield and assignments.stopPromiseas the single in-flight stop guard.Rationale
Bootstrap.stop()now coalesces concurrent stop callers throughstopPromise. Thestoppingflag was still written duringdoStop(), but no production code read it anymore.Verification
lsp_diagnosticsonsrc/charging-station/Bootstrap.tslsp_diagnosticsontests/charging-station/Bootstrap.test.tspnpm exec tsx --test tests/charging-station/Bootstrap.test.tspnpm typecheckpnpm lintGIT_MASTER=1 git diff --check