Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion crates/chat-cli/src/util/knowledge_store.rs
Original file line number Diff line number Diff line change
Expand Up @@ -169,9 +169,14 @@ impl KnowledgeStore {
let files_to_migrate: Vec<_> = entries
.flatten()
.filter(|entry| {
let path = entry.path();
let name = entry.file_name();
let name_str = name.to_string_lossy();
name_str != current_agent_id && name_str != DEFAULT_AGENT_NAME && !name_str.starts_with('.')
// Only migrate FILES, not directories (to avoid moving other agent directories)
path.is_file()
&& name_str != current_agent_id
&& name_str != DEFAULT_AGENT_NAME
&& !name_str.starts_with('.')
})
.collect();

Expand Down