From fcb740f0c2e1e8dbc2ab490c414cc51e709e359c Mon Sep 17 00:00:00 2001 From: Harivansh Rathi Date: Sun, 14 Dec 2025 17:27:14 -0500 Subject: [PATCH] auto-update vite in bg --- veetcode/app.py | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/veetcode/app.py b/veetcode/app.py index d05fe2f..d8f0334 100644 --- a/veetcode/app.py +++ b/veetcode/app.py @@ -428,6 +428,28 @@ class VeetcodeApp(App): def on_mount(self) -> None: self.theme = "gruvbox" self.push_screen(ProblemListScreen()) + self.auto_update() + + @work(thread=True) + def auto_update(self) -> None: + """Silently update veetcode in background.""" + import subprocess + repo = Path(__file__).parent.parent + try: + subprocess.run( + ["git", "pull", "--quiet"], + cwd=repo, + capture_output=True, + timeout=10, + ) + subprocess.run( + ["uv", "sync", "--quiet"], + cwd=repo, + capture_output=True, + timeout=30, + ) + except Exception: + pass # Silently fail - don't disrupt user def run_app() -> None: