From fc95d808fe80e3c19ac4a083bffec9c441dcc351 Mon Sep 17 00:00:00 2001 From: marcusquinn <6428977+marcusquinn@users.noreply.github.com> Date: Sun, 8 Feb 2026 02:50:14 +0000 Subject: [PATCH] fix: refresh version cache after setup.sh completes setup.sh deploys the VERSION file but never refreshes the session greeting cache. This causes stale version reporting when running setup.sh directly (without aidevops update). Now runs the update check script at the end of setup to sync the cached version. --- setup.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/setup.sh b/setup.sh index f0a1b59b..ed7c02ac 100755 --- a/setup.sh +++ b/setup.sh @@ -4210,6 +4210,13 @@ main() { confirm_step "Disable on-demand MCPs globally" && disable_ondemand_mcps fi + # Refresh version cache so session greeting shows correct version + # This ensures `setup.sh` alone (without `aidevops update`) updates the cached version + local update_check_script="$HOME/.aidevops/agents/scripts/aidevops-update-check.sh" + if [[ -x "$update_check_script" ]]; then + "$update_check_script" > /dev/null 2>&1 || true + fi + echo "" print_success "🎉 Setup complete!" echo ""