refactor: Move release notes offer after announcements in main function

This commit is contained in:
Paul Gauthier 2024-11-19 17:33:13 -08:00 committed by Paul Gauthier (aider)
parent b0c0104ba3
commit c057b00e08

View file

@ -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!"),