agents: prompt user via ask_question on sync auth failures (#4342) Background sync loops that fail due to expired credentials either go unnoticed or get masked by output filtering. Instruct agents in `sync-git-branch-continuously` to keep the background sync process running, avoid masking authentication errors, prompt the user via `ask_question` for a UI alert, and verify credentials before signaling an immediate sync.
diff --git a/.agents/skills/sync-git-branch-continuously/SKILL.md b/.agents/skills/sync-git-branch-continuously/SKILL.md index 06f6497..466799a 100644 --- a/.agents/skills/sync-git-branch-continuously/SKILL.md +++ b/.agents/skills/sync-git-branch-continuously/SKILL.md
@@ -84,3 +84,15 @@ ```bash tail -n 20 "/tmp/sync_git_${REPO_NAME}_${BRANCH_NAME}.log" ``` + +## Authentication Failures + +When `git pull` or `git push` fails due to invalid or expired credentials: + +1. Keep the background sync process running so it automatically resumes if + credentials are refreshed incidentally. Never mask or sanitize + authentication errors to suppress wakeups. +2. Prompt the user via `ask_question` so a UI popup alerts them to + re-authenticate. +3. After the user responds, trigger an immediate sync cycle (`kill -USR1 + <PID>`) and verify the sync log.