You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Settle pending plugin callers when their instance is disposed #5969
Follow-up to #5964, intentionally deferred from #5967: settle or reject a disposed plugin instance's in-flight request continuations. Containing stale errors keeps the server alive, but does not stop abandoned work.
Use the regression fixture in plugin-uncaught.test.ts. Its CLI handler awaits a gate; start the command, reload the plugin, then release the gate. The old handler continues and attempts a realtime publish.
Actual: disposal waits for the drain deadline, logs plugin uncaught: 1 in-flight invocation(s) did not settle before dispose; proceeding, and invalidates the handle. The caller/continuation can remain pending and resume after disposal.
Expected: define and implement how core settles pending callers at disposal and cooperatively cancels their work, preserving existing plugin contracts. JavaScript promises cannot forcibly cancel arbitrary plugin continuations; the design must explicitly cover that limit.
Evidence
drainInvocations bounds waiting but does not settle the invocation.
Applied missing classifications: Type: Task · Priority: Medium · Effort: High · Labels: plugins. No existing values were replaced; final values were read back and verified.
Trusted origin/main (04bdce8111ca3dbdd136c63fad3e36f56e5814c0) explicitly bounds invocation draining and proceeds after timeout. Defining caller settlement and cooperative cancellation across plugin entry points is lifecycle-design work, rather than the separate crash-containment defect. Limited reload/disposal scope supports Medium priority; cross-entry-point lifecycle semantics support High effort.
No reproduction report or pull request: the final Type is Task, so the bug-report and fix stages do not apply.
Activity
bb-slop-cop commentedon Oct 21, 2026
🚨 SLOP COP 🚨 ·
new-issue-autopilotApplied missing classifications: Type: Task · Priority: Medium · Effort: High · Labels:
plugins. No existing values were replaced; final values were read back and verified.Trusted
origin/main(04bdce8111ca3dbdd136c63fad3e36f56e5814c0) explicitly bounds invocation draining and proceeds after timeout. Defining caller settlement and cooperative cancellation across plugin entry points is lifecycle-design work, rather than the separate crash-containment defect. Limited reload/disposal scope supports Medium priority; cross-entry-point lifecycle semantics support High effort.No reproduction report or pull request: the final Type is Task, so the bug-report and fix stages do not apply.
Tie each loaded plugin copy's work to that copy across reload, disabl…