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
Commit 7537805
Browse filesBrowse the repository at this point in the historyBrowse files
test(webview): dispose temp-id providers and await the load deterministically
The three temporary-id tests constructed ClineProviders that were never
disposed: the constructor registers each instance in the static
activeInstances set, so leaked instances linger for every later test in
the worker and can change what the cross-instance reset broadcast and
getInstanceForView see. The failed-write test restored the rejecting
globalState.update stub only on the green path, so a failing assertion
left the stub in place for later tests. The load test waited a fixed
10 ms for the constructor's fire-and-forget loadViewState; it now
captures the in-flight promise and awaits it, so the absence assertion
runs against a settled buffer. The CloudService double gains on/off so
dispose can unsubscribe.
Proofs: ClineProvider.sticky-mode.spec 30/30; eslint --max-warnings=0
clean; tsc clean except the two known local telemetry-dist noise lines;
prettier ALL-MATCHED on the touched file. Test-only change: no
production behavior touched, so no mutation control applies.
0 commit comments