From c057b00e0891649911137a62c7d1cc9d13b818f6 Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Tue, 19 Nov 2024 17:33:13 -0800 Subject: [PATCH] refactor: Move release notes offer after announcements in main function --- aider/main.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/aider/main.py b/aider/main.py index d4d68b99d..2dc2cf054 100644 --- a/aider/main.py +++ b/aider/main.py @@ -615,10 +615,6 @@ def main(argv=None, input=None, output=None, force_git_root=None, return_coder=F is_first_run = is_first_run_of_new_version(io, verbose=args.verbose) check_and_load_imports(io, is_first_run, verbose=args.verbose) - if is_first_run: - io.offer_url(urls.release_notes, "Would you like to see what's new in this version?") - io.tool_output() - if args.anthropic_api_key: os.environ["ANTHROPIC_API_KEY"] = args.anthropic_api_key @@ -750,6 +746,10 @@ def main(argv=None, input=None, output=None, force_git_root=None, return_coder=F coder.show_announcements() + if is_first_run: + io.offer_url(urls.release_notes, "Would you like to see what's new in this version?") + io.tool_output() + if args.show_prompts: coder.cur_messages += [ dict(role="user", content="Hello!"),