Save version when skipping reporting to prevent re-prompting

When users click "Skip reporting" without the checkbox, now saves
the current version to version-info.json. This prevents the prompt
from appearing again until the version actually changes.

Behavior:
- Skip without checkbox: Saves version, will prompt on next version
- Skip with checkbox: Sets neverAsk=true, never prompts again

Co-authored-by: netmindz <442066+netmindz@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-02-26 14:24:25 +00:00
parent 231fb5a7ca
commit 6f65b46b14

View File

@@ -3425,8 +3425,10 @@ function showVersionUpgradePrompt(info, oldVersion, newVersion) {
// Save "never ask" preference
updateVersionInfo(newVersion, true, false);
showToast('You will not be asked again.');
} else {
// Save current version to prevent re-prompting until version changes
updateVersionInfo(newVersion, false, false);
}
// Don't update version if not saving choice, will ask again on next load
});
}