Repository navigation
fix(core): close promise plugin event subscriptions on scope teardown - #38825
Closed
tiffanychum wants to merge 849 commits into
Closed
tiffanychum wants to merge 849 commits into
tiffanychum wants to merge 849 commits into
Conversation
Keep draining standalone server stdout after reading its readiness message so later server output does not write into a closed pipe. Install the Node CLI broken-pipe handler before loading the main entrypoint. Ignore only EPIPE while preserving all unrelated stdout errors. This prevents Windows Node builds from failing when the TUI prints its exit epilogue after renderer teardown.
Co-authored-by: James Long <[email protected]>
Co-authored-by: Aiden Cline <[email protected]>
Co-authored-by: Aiden Cline <[email protected]>
Co-authored-by: Dax Raad <[email protected]>
Co-authored-by: Dax Raad <[email protected]>
Co-authored-by: Aiden Cline <[email protected]> Co-authored-by: Aiden Cline <[email protected]>
Fixes anomalyco#36677 Co-authored-by: Cursor <[email protected]>
Contributor
|
Thanks for your contribution! This PR doesn't have a linked issue. All PRs must reference an existing issue. Please:
See CONTRIBUTING.md for details. |
Contributor
|
Thanks for updating your PR! It now meets our contributing guidelines. 👍 |
Author
|
Closing without merging: this branch was rebuilt/re-checked against current What changed upstream
What we checked on current
Leaving #36677 open for maintainer re-triage in case the original allocation-loop report still has a different root cause. |
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.
Issue for this PR
Closes #36677
Type of change
What does this PR do?
Promise-based plugins that detach a
for awaitonctx.event.subscribe()never calledreturn(), so each location expiry/reboot leaked a process-global PubSub subscriber and fan-out grew until idle servers burned a core on allocation. The promise bridge now registers a plugin-scope finalizer that closes the async iterator, so generation teardown unsubscribes even when the plugin never returns the iterator.How did you verify your code works?
bun test test/plugin/promise.test.ts(10/10) andbun typecheckinpackages/core.Screenshots / recordings
N/A — not a UI change.
Checklist