Skip to content

fix(core): keep events buffered when a WaitingPlugin is added before … - #1321

Open
abueide wants to merge 1 commit into
masterfrom
fix/issue-1308
Open

fix(core): keep events buffered when a WaitingPlugin is added before …#1321
abueide wants to merge 1 commit into
masterfrom
fix/issue-1308

Conversation

@abueide

@abueide abueide commented Aug 31, 2026

Copy link
Copy Markdown
Contributor

…init

A WaitingPlugin added right after createClient() is deferred into pluginsToAdd and only registered from onReady(). init() then set running to true and drained the pending buffer unconditionally, discarding the pause the plugin had just requested, so events were enriched with the plugin's pre-resume() state.

init() now leaves processing paused while waiting plugins are registered, and pauseEventProcessing() arms its auto-resume timeout even when processing is already stopped so the 30s safety valve still applies pre-init. resumeEventProcessing() defers the buffer drain to init() until isReady.

Fixes #1308

…init

A WaitingPlugin added right after createClient() is deferred into
pluginsToAdd and only registered from onReady(). init() then set
running to true and drained the pending buffer unconditionally,
discarding the pause the plugin had just requested, so events were
enriched with the plugin's pre-resume() state.

init() now leaves processing paused while waiting plugins are
registered, and pauseEventProcessing() arms its auto-resume timeout
even when processing is already stopped so the 30s safety valve still
applies pre-init. resumeEventProcessing() defers the buffer drain to
init() until isReady.

Fixes #1308

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
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.

WaitingPlugin works not as expected

2 participants