GitHub issue #14367 in cline/cline, opened 2026-09-21 by AbubakarMahmood, records a report that restoring a workspace checkpoint can permanently delete local untracked files protected by an uncommitted .gitignore rule: git reset --hard first reverts .gitignore to the checkpoint state, then git clean -fd deletes files that are newly unignored, with no Recycle Bin or Trash fallback, and the deleted files were never captured in the stash so they are never restored; the report was filed against Cline Desktop v0.0.32 (Core SDK 3.33.x) on Windows 11.
Verbatim Excerpts from Cited Records
“Restoring a workspace checkpoint can cause permanent, irrecoverable deletion of local untracked files that were explicitly protected by an uncommitted `.gitignore` rule.”
·
cline/cline (issue 14367 opening body, What happened? section)
·
2026-09-21T22:22:43Z
·GitHub Issue ↗
“`beginWorktreeRestoreTransaction` (`checkpoint-restore.ts:71-83`) runs `git stash push --include-untracked`. Standard `git stash push --include-untracked` stashes untracked files, but **ignores files matching `.gitignore`** (Git requires `--all` / `-a` to stash ignored files). Therefore, all paths ignored by the current working tree's `.gitignore` remain on disk and are **NOT** captured into the stash commit (`^3`).”
·
cline/cline (issue 14367 opening body, What happened? section)
·
2026-09-21T22:22:43Z
·GitHub Issue ↗
“`applyCheckpointToWorktree` runs `git reset --hard`. Because `.gitignore` had uncommitted modifications, `git reset --hard` immediately wipes those changes and **reverts `.gitignore` to the target checkpoint commit state**.”
·
cline/cline (issue 14367 opening body, What happened? section)
·
2026-09-21T22:22:43Z
·GitHub Issue ↗
“`git clean -fd` permanently deletes these files from disk via Win32 `DeleteFileW` / `RemoveDirectoryW` on Windows (or `unlink` / `rmdir` on POSIX) with **zero Recycle Bin / Trash fallback**.”
·
cline/cline (issue 14367 opening body, What happened? section)
·
2026-09-21T22:22:43Z
·GitHub Issue ↗
Counter-record: Issue open as of the fetch; 5 comments were read. linear-code[bot] (2026-09-21) linked the report to CLINE-3360. samvallad33 (2026-10-22) discussed how the report was found, and maxpaulus43 (2026-10-30) asked about the case where a user wants the .gitignore change undone along with the files. buzzedaldrinx86-creator (2026-11-17) reported a local patch candidate with regression tests for the changed-ignore-rule failure, validated on macOS arm64 against commit 146894b6a42a7a554c6ff37f7bb33fe5122cc33d, but no pull request or merged fix appears in the surveyed thread. No maintainer fix merged and no retraction of the original report appear in the surveyed thread. The claim documents only the original report, not a verified current state.
Falsification probe: If GitHub issue #14367 is deleted without archive, 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.