Files
DeepSeek-Reasonix/internal/completion
SivanCola 42868fe651 fix(session): repair shutdown races and writer cleanup / 修复会话关闭竞争与句柄清理 (#10263)
* fix(session): keep the persistence handle immutable during close

Problem: Desktop shutdown races background session snapshots and sibling physical-handle readers.

Root cause: Close cleared the handle under the binding mutex while readers use the session mutex.

Fix: retain the immutable handle reference while closing its resources; existing closed and admission flags continue to reject writes.

Verification: deterministic regression fails before and passes after the fix; session race suite, 20 Desktop activation race repetitions, repolint and diff checks pass.

* fix(control): release compatibility writers after failed rebind

Normalize Windows path case before shared writer lookup, preserve cleanup ownership on failed rebind, and repair remaining fixture cleanup. Add a regression proving the previous writer can reopen after a failed transition.
2026-09-14 04:24:46 +00:00
..