@@ -1269,7 +1269,8 @@ mod internal_tests {
12691269 let project = Project :: test ( fs. clone ( ) , [ ] , cx) . await ;
12701270 let text_thread_store =
12711271 cx. new ( |cx| assistant_text_thread:: TextThreadStore :: fake ( project. clone ( ) , cx) ) ;
1272- let history_store = cx. new ( |cx| HistoryStore :: new ( text_thread_store, cx) ) ;
1272+ let history_store =
1273+ cx. new ( |cx| HistoryStore :: new ( text_thread_store, HistoryScope :: global ( ) , cx) ) ;
12731274 let agent = NativeAgent :: new (
12741275 project. clone ( ) ,
12751276 history_store,
@@ -1331,7 +1332,8 @@ mod internal_tests {
13311332 let project = Project :: test ( fs. clone ( ) , [ ] , cx) . await ;
13321333 let text_thread_store =
13331334 cx. new ( |cx| assistant_text_thread:: TextThreadStore :: fake ( project. clone ( ) , cx) ) ;
1334- let history_store = cx. new ( |cx| HistoryStore :: new ( text_thread_store, cx) ) ;
1335+ let history_store =
1336+ cx. new ( |cx| HistoryStore :: new ( text_thread_store, HistoryScope :: global ( ) , cx) ) ;
13351337 let connection = NativeAgentConnection (
13361338 NativeAgent :: new (
13371339 project. clone ( ) ,
@@ -1407,7 +1409,8 @@ mod internal_tests {
14071409
14081410 let text_thread_store =
14091411 cx. new ( |cx| assistant_text_thread:: TextThreadStore :: fake ( project. clone ( ) , cx) ) ;
1410- let history_store = cx. new ( |cx| HistoryStore :: new ( text_thread_store, cx) ) ;
1412+ let history_store =
1413+ cx. new ( |cx| HistoryStore :: new ( text_thread_store, HistoryScope :: global ( ) , cx) ) ;
14111414
14121415 // Create the agent and connection
14131416 let agent = NativeAgent :: new (
@@ -1480,7 +1483,8 @@ mod internal_tests {
14801483 let project = Project :: test ( fs. clone ( ) , [ path ! ( "/a" ) . as_ref ( ) ] , cx) . await ;
14811484 let text_thread_store =
14821485 cx. new ( |cx| assistant_text_thread:: TextThreadStore :: fake ( project. clone ( ) , cx) ) ;
1483- let history_store = cx. new ( |cx| HistoryStore :: new ( text_thread_store, cx) ) ;
1486+ let history_store =
1487+ cx. new ( |cx| HistoryStore :: new ( text_thread_store, HistoryScope :: global ( ) , cx) ) ;
14841488 let agent = NativeAgent :: new (
14851489 project. clone ( ) ,
14861490 history_store. clone ( ) ,
0 commit comments