skip session-start pull on dirty working trees

This commit is contained in:
Jason Woltje
2026-02-17 12:43:07 -06:00
parent a146aa0709
commit 4d6a78a277

View File

@@ -9,7 +9,11 @@ ensure_repo_root
load_repo_hooks
if git rev-parse --is-inside-work-tree >/dev/null 2>&1 && has_remote; then
run_step "Pull latest changes" git pull --rebase
if git diff --quiet && git diff --cached --quiet; then
run_step "Pull latest changes" git pull --rebase
else
echo "[agent-framework] Skip pull: working tree has local changes"
fi
fi
if declare -F mosaic_hook_session_start >/dev/null 2>&1; then