What's wrong with this entry?
Anonymous. No account, no email.
- Fixed worktree safety: prevents removing worktrees that were entered (not created) via
EnterWorktree, avoiding accidental deletion of shared worktrees (search for"enteredExisting") - Fixed stream handling for socket writes by deferring
stream.end()until the write buffer is fully drained, preventing truncated output (search for"endAfterDrain") - Added defensive null check for
prePlanModeproperty to prevent crashes when the property is undefined (search for"prePlanMode") - Fixed array last-element access using
.at(-1)instead of manual indexing, preventing potential off-by-one errors - Added type safety check for non-Array inputs to token counting function, returning 0 instead of throwing (search for
"Array.isArray") - Fixed async cleanup race condition in caffeinate (sleep prevention) by capturing the reference before try-finally blocks
- Added optional chaining for
querier.onResponse()to prevent null reference crashes - Fixed UNC path permission checks to allow certain whitelisted UNC paths that pass security validation