Skip to content

Commit ddb293c

Browse files
fix: remove buggy semantic_search folder migration (#3142)
Remove legacy ~/.semantic_search migration logic that was causing compatibility issues for users. The migration was outdated and causing problems during knowledge base initialization. Co-authored-by: Kenneth S. <[email protected]>
1 parent 9c571bd commit ddb293c

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

crates/chat-cli/src/util/knowledge_store.rs

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -162,25 +162,6 @@ impl KnowledgeStore {
162162
.and_then(|name| name.to_str())
163163
.unwrap_or(DEFAULT_AGENT_NAME);
164164

165-
// Migrate from legacy ~/.semantic_search
166-
let old_flat_dir = dirs::home_dir()
167-
.unwrap_or_else(|| PathBuf::from("."))
168-
.join(".semantic_search");
169-
170-
if old_flat_dir.exists() && !agent_dir.exists() {
171-
if let Some(parent) = agent_dir.parent() {
172-
std::fs::create_dir_all(parent).ok();
173-
}
174-
if std::fs::rename(&old_flat_dir, agent_dir).is_ok() {
175-
println!(
176-
"✅ Migrated knowledge base from {} to {}",
177-
old_flat_dir.display(),
178-
agent_dir.display()
179-
);
180-
return true;
181-
}
182-
}
183-
184165
// Migrate from knowledge_bases root - get file list first to avoid recursion
185166
if let Some(kb_root) = agent_dir.parent() {
186167
if kb_root.exists() {

0 commit comments

Comments
 (0)