@@ -1049,12 +1049,13 @@ mod tests {
10491049 #[ tokio:: test]
10501050 async fn test_conversation_state_history_handling_truncation ( ) {
10511051 let mut database = Database :: new ( ) . await . unwrap ( ) ;
1052+ let mut output = SharedWriter :: null ( ) ;
10521053
10531054 let mut tool_manager = ToolManager :: default ( ) ;
10541055 let mut conversation_state = ConversationState :: new (
10551056 Context :: new ( ) ,
10561057 "fake_conv_id" ,
1057- tool_manager. load_tools ( & database) . await . unwrap ( ) ,
1058+ tool_manager. load_tools ( & database, & mut output ) . await . unwrap ( ) ,
10581059 None ,
10591060 None ,
10601061 tool_manager,
@@ -1076,10 +1077,11 @@ mod tests {
10761077 #[ tokio:: test]
10771078 async fn test_conversation_state_history_handling_with_tool_results ( ) {
10781079 let mut database = Database :: new ( ) . await . unwrap ( ) ;
1080+ let mut output = SharedWriter :: null ( ) ;
10791081
10801082 // Build a long conversation history of tool use results.
10811083 let mut tool_manager = ToolManager :: default ( ) ;
1082- let tool_config = tool_manager. load_tools ( & database) . await . unwrap ( ) ;
1084+ let tool_config = tool_manager. load_tools ( & database, & mut output ) . await . unwrap ( ) ;
10831085 let mut conversation_state = ConversationState :: new (
10841086 Context :: new ( ) ,
10851087 "fake_conv_id" ,
@@ -1150,6 +1152,7 @@ mod tests {
11501152 #[ tokio:: test]
11511153 async fn test_conversation_state_with_context_files ( ) {
11521154 let mut database = Database :: new ( ) . await . unwrap ( ) ;
1155+ let mut output = SharedWriter :: null ( ) ;
11531156
11541157 let ctx = Context :: builder ( ) . with_test_home ( ) . await . unwrap ( ) . build_fake ( ) ;
11551158 ctx. fs ( ) . write ( AMAZONQ_FILENAME , "test context" ) . await . unwrap ( ) ;
@@ -1158,7 +1161,7 @@ mod tests {
11581161 let mut conversation_state = ConversationState :: new (
11591162 ctx,
11601163 "fake_conv_id" ,
1161- tool_manager. load_tools ( & database) . await . unwrap ( ) ,
1164+ tool_manager. load_tools ( & database, & mut output ) . await . unwrap ( ) ,
11621165 None ,
11631166 None ,
11641167 tool_manager,
@@ -1199,6 +1202,7 @@ mod tests {
11991202 // tracing_subscriber::fmt::try_init().ok();
12001203
12011204 let mut database = Database :: new ( ) . await . unwrap ( ) ;
1205+ let mut output = SharedWriter :: null ( ) ;
12021206
12031207 let mut tool_manager = ToolManager :: default ( ) ;
12041208 let ctx = Context :: builder ( ) . with_test_home ( ) . await . unwrap ( ) . build_fake ( ) ;
@@ -1227,7 +1231,7 @@ mod tests {
12271231 let mut conversation_state = ConversationState :: new (
12281232 ctx,
12291233 "fake_conv_id" ,
1230- tool_manager. load_tools ( & database) . await . unwrap ( ) ,
1234+ tool_manager. load_tools ( & database, & mut output ) . await . unwrap ( ) ,
12311235 None ,
12321236 Some ( SharedWriter :: stdout ( ) ) ,
12331237 tool_manager,
0 commit comments