From a3754bb019b903d6e35ae432fdd9a7ceb277d13a Mon Sep 17 00:00:00 2001 From: Harivansh Rathi Date: Sun, 14 Dec 2025 17:56:07 -0500 Subject: [PATCH] dont overwrite solutions --- veetcode/app.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/veetcode/app.py b/veetcode/app.py index 976abab..eb48afb 100644 --- a/veetcode/app.py +++ b/veetcode/app.py @@ -509,12 +509,14 @@ class VeetcodeApp(App): @work(thread=True) def auto_update(self) -> None: - """Silently update veetcode in background.""" + """Silently update veetcode in background, preserving user solutions.""" import subprocess repo = Path(__file__).parent.parent try: + # Use --autostash to preserve local changes (user solutions) + # and --rebase to cleanly apply updates subprocess.run( - ["git", "pull", "--quiet"], + ["git", "pull", "--rebase", "--autostash", "--quiet"], cwd=repo, capture_output=True, timeout=10,