{"version":"2.1.105","anchor":"bug-fixes","canonical_anchor":"bug-fixes","heading":"","tier":null,"area":null,"scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.105\/e\/bug-fixes","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.105","markdown":"- Fixed worktree safety: prevents removing worktrees that were entered (not created) via `EnterWorktree`, avoiding accidental deletion of shared worktrees (search for `\"enteredExisting\"`)\n- Fixed stream handling for socket writes by deferring `stream.end()` until the write buffer is fully drained, preventing truncated output (search for `\"endAfterDrain\"`)\n- Added defensive null check for `prePlanMode` property to prevent crashes when the property is undefined (search for `\"prePlanMode\"`)\n- Fixed array last-element access using `.at(-1)` instead of manual indexing, preventing potential off-by-one errors\n- Added type safety check for non-Array inputs to token counting function, returning 0 instead of throwing (search for `\"Array.isArray\"`)\n- Fixed async cleanup race condition in caffeinate (sleep prevention) by capturing the reference before try-finally blocks\n- Added optional chaining for `querier.onResponse()` to prevent null reference crashes\n- Fixed UNC path permission checks to allow certain whitelisted UNC paths that pass security validation"}