fix(update): never show update prompt/notice in non-interactive runs

This commit is contained in:
Alex Schapiro
2026-07-19 18:08:11 +00:00
parent df80fad960
commit aa7a097037
+3 -2
View File
@@ -807,7 +807,8 @@ def display_completion_message(args: argparse.Namespace, results_path: Path) ->
"[#60a5fa]discord.gg/strix-ai[/]"
)
console.print()
notify_update(console)
if not args.non_interactive:
notify_update(console)
def pull_docker_image() -> None:
@@ -872,7 +873,7 @@ def main() -> None:
apply_config_override(validate_config_file(args.config))
start_background_check()
if prompt_update_if_available(Console()):
if not args.non_interactive and prompt_update_if_available(Console()):
if is_binary_install() and sys.platform != "win32":
os.execv(sys.executable, sys.argv) # noqa: S606 # nosec B606
sys.exit(0)