@@ -462,7 +462,7 @@ def update_display(layout, spinner_text=None, stats_handler=None, start_time=Non
462462def get_user_selections ():
463463 """Get all user selections before starting the analysis display."""
464464 # Display ASCII art welcome message
465- with open (Path (__file__ ).parent / "static" / "welcome.txt" , "r" , encoding = "utf-8" ) as f :
465+ with open (Path (__file__ ).parent / "static" / "welcome.txt" , "r" ) as f :
466466 welcome_ascii = f .read ()
467467
468468 # Create welcome box content
@@ -968,7 +968,7 @@ def wrapper(*args, **kwargs):
968968 func (* args , ** kwargs )
969969 timestamp , message_type , content = obj .messages [- 1 ]
970970 content = content .replace ("\n " , " " ) # Replace newlines with spaces
971- with open (log_file , "a" , encoding = "utf-8" ) as f :
971+ with open (log_file , "a" ) as f :
972972 f .write (f"{ timestamp } [{ message_type } ] { content } \n " )
973973 return wrapper
974974
@@ -979,7 +979,7 @@ def wrapper(*args, **kwargs):
979979 func (* args , ** kwargs )
980980 timestamp , tool_name , args = obj .tool_calls [- 1 ]
981981 args_str = ", " .join (f"{ k } ={ v } " for k , v in args .items ())
982- with open (log_file , "a" , encoding = "utf-8" ) as f :
982+ with open (log_file , "a" ) as f :
983983 f .write (f"{ timestamp } [Tool Call] { tool_name } ({ args_str } )\n " )
984984 return wrapper
985985
@@ -993,7 +993,7 @@ def wrapper(section_name, content):
993993 if content :
994994 file_name = f"{ section_name } .md"
995995 text = "\n " .join (str (item ) for item in content ) if isinstance (content , list ) else content
996- with open (report_dir / file_name , "w" , encoding = "utf-8" ) as f :
996+ with open (report_dir / file_name , "w" ) as f :
997997 f .write (text )
998998 return wrapper
999999
0 commit comments