GitHub issue #15906 in cline/cline, created 2026-11-29 by audipz and titled "Delayed session event can append to the wrong task after switching chats", reports that a delayed session event can append to the wrong task after switching chats. In SdkSessionEventCoordinator.handleSessionEvent, pausing asynchronous cost normalization after the active-session check, then switching displayed tasks and releasing the promise, lets the message coordinator append the old event to the current task buffer. Reused session IDs and epoch-only changes also reproduce the defect. The expected behavior is to capture the session object, task object and presentation epoch before awaiting and revalidate all three after the await before appending, publishing or updating usage/status. The report was made against VS Code extension source v4.1.27, commit 8075d2e35cf5cad67c24f180c80a05d311b74a3e, using deterministic local component tests with simulated dependencies; current main and the installed historical bundle were not verified. Validation: three targeted failures on the original source, and 210 tests in 13 suites and two type checks passed with the candidate. The report states the fixture is same-controller only, with no proof of cross-window model disclosure or persisted transcript contamination. Local tracking ID: CLINE-003. The report states it is independent of historical model-output symptoms, that local regression fixtures and candidate diffs are available where implemented, that no upstream merge is claimed, and that the analysis and drafting were AI-assisted.
Verbatim Excerpts from Cited Records
“In SdkSessionEventCoordinator.handleSessionEvent, pause asynchronous cost normalization after the active-session check. Switch displayed tasks, then release the promise. The message coordinator can append the old event to the current task buffer.”
·
cline/cline (issue 15906 opening body, Reproduction and actual behavior section)
·
2026-11-29T10:43:57Z
·GitHub Issue ↗
“Reused session IDs and epoch-only changes also reproduce the defect.”
·
cline/cline (issue 15906 opening body, Reproduction and actual behavior section)
·
2026-11-29T10:43:57Z
·GitHub Issue ↗
“Capture session object, task object and presentation epoch before awaiting; revalidate all three after the await before appending, publishing or updating usage/status.”
·
cline/cline (issue 15906 opening body, Expected behavior and proposed fix section)
·
2026-11-29T10:43:57Z
·GitHub Issue ↗
“Three targeted failures on original source; 210 tests in 13 suites and two type checks passed with the candidate. Same-controller fixture only; no proof of cross-window model disclosure or persisted transcript contamination.”
·
cline/cline (issue 15906 opening body, Validation and limitations section)
·
2026-11-29T10:43:57Z
·GitHub Issue ↗
Counter-record: Issue remains open as of 2026-11-29 (last updated 2026-11-29T11:04:56Z). 2 comments read in total. linear-code[bot] (2026-11-29) linked the report to CLINE-3860. audipz (2026-11-29) attached a candidate patch file, guard-stale-task-events.patch. No maintainer response appears in the surveyed thread. The claim documents only the original report, not a verified current state.
Falsification probe: If GitHub issue #15906 is closed as fixed, as a duplicate, or as not planned, if the author edits the opening body so the quoted sentences no longer match verbatim, or if the author posts a retraction of the report, this claim drops to Withdrawn.
Audit verification: Verified 100% continuous verbatim substring against official GitHub REST API by
scripts/verify_claim_verbatim.py.