Skip to content

Commit 873719e

Browse files
authored
swap tool manager (#381)
1 parent bfbfaf3 commit 873719e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

crates/chat-cli/src/cli/chat/cli/persist.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ impl PersistSubcommand {
9595

9696
let mut new_state: ConversationState = tri!(serde_json::from_str(&contents), "import from", &path);
9797
new_state.reload_serialized_state(os).await;
98+
std::mem::swap(&mut new_state.tool_manager, &mut session.conversation.tool_manager);
9899
session.conversation = new_state;
99100

100101
execute!(

0 commit comments

Comments
 (0)