Solution for long term memory for agent coding CLIs and to facilitate handoff between different agent vendors
Rust
fix(cli): compare the resolved launcher path case-insensitively (#1097)
AkitaOnRails407cd996344c
diff --git a/crates/ai-memory-cli/src/commands/opencode_dialect.rs b/crates/ai-memory-cli/src/commands/opencode_dialect.rsindex 14ca248b..12aad931 100644--- a/crates/ai-memory-cli/src/commands/opencode_dialect.rs+++ b/crates/ai-memory-cli/src/commands/opencode_dialect.rs@@ -284,7 +284,12 @@ mod tests {).unwrap();assert_eq!(resolved.dialect, OpenCodeDialect::V2);- assert_eq!(resolved.executable, base.with_extension("cmd"));+ // PATHEXT spells extensions in whatever case the machine defines+ // (`.CMD` on stock Windows), and Windows paths are case-insensitive.+ assert_eq!(+ resolved.executable.to_string_lossy().to_lowercase(),+ base.with_extension("cmd").to_string_lossy().to_lowercase()+ );}#[cfg(unix)]