GitHub issue #13909 in cline/cline, created 2026-09-06 by yunfeng-tian and titled "# [Crash] Extension host repeatedly terminated unexpectedly — Cline main thread blocked ~24s by TaskService.clearTask / long-task resume (VS Code 1.136.1, Cline 4.1.17)", reports that the extension host is repeatedly killed with "Extension host terminated unexpectedly" and auto-restarted on VS Code 1.136.1 with Cline 4.1.17 on Windows: in every crash the Cline extension-host process becomes unresponsive for more than 10 seconds, then about 12-40 seconds later the process is terminated with exit code 0 and VS Code automatically restarts the extension host. When isolated with extensions.experimental.affinity, the "running extensions" list in the crash message contains only saoudrizwan.claude-dev. About 10 seconds after resuming a long history task (124 messages) and clearing/switching tasks, TaskService.clearTask blocked the extension-host main thread for about 24 seconds (23932ms), and the host was killed about 7 seconds later. Earlier the same day, before isolation on Cline 4.1.16, the same signature repeated 3 times within 5 minutes. The CPU profiles VS Code auto-saved for the unresponsive host show the sampled stack frames are almost entirely inside Cline: 2482 and 3891 occurrences of saoudrizwan paths in two profiles versus 0 for every other extension. The author identifies the likely trigger as resuming (or clearing/switching away from) long history tasks (100+ messages, large webview state), which triggers synchronous heavy work on the extension-host main thread, and states the crash is not related to workspace file scanning.
Verbatim Excerpts from Cited Records
“The Extension Host is killed with **"Extension host terminated unexpectedly"** and auto-restarted.”
“When isolated with `extensions.experimental.affinity`, the "running extensions" list in the crash message contains **only `saoudrizwan.claude-dev`** — all other extensions are safe.”
“Reading: ~10 s after resuming a long history task (**124 messages**) and clearing/switching tasks, `TaskService.clearTask` blocked the extension-host main thread for **~24 s**, and the host was killed ~7 s later.”
·
cline/cline (issue 13909 opening body, Key log evidence section)
·
2026-09-06T14:31:58Z
·GitHub Issue ↗
“Resuming (or clearing/switching away from) **long history tasks** (100+ messages, large webview state) triggers synchronous heavy work on the extension-host main thread — `clearTask` alone took ~24 s.”
·
cline/cline (issue 13909 opening body, Likely trigger / reproduction section)
·
2026-09-06T14:31:58Z
·GitHub Issue ↗
Counter-record: Issue still open as of 2026-12-05. 2 comments read in total, both bot-generated, with no human confirmation, fix, duplicate, withdrawal, or closure: linear-code[bot] (2026-09-06) posted a CLINE-3189 linkback; github-actions[bot] (2026-12-05) marked the issue stale after 60 days without activity. No maintainer response and no fix PR referenced in the thread as of 2026-12-05. The stale label is a housekeeping marker, not a fix or a closure.
Falsification probe: If issue #13909 is closed as fixed, as a duplicate, or as not planned, or if the author edits the opening body so the quoted sentences no longer match verbatim, this claim drops to Withdrawn.
Audit verification: Verified 100% continuous verbatim substring against official GitHub REST API by
scripts/verify_claim_verbatim.py.