Skip to content

Solution for long term memory for agent coding CLIs and to facilitate handoff between different agent vendors

Rust

fix(hooks): document windows cwd routing fix

AkitaOnRails434e2dff7212
diff --git a/CHANGELOG.md b/CHANGELOG.md
index d9ed1567..35f0bdcb 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -32,6 +32,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
and may reuse `LLM_API_KEY` when a custom embedding base URL is configured.
- `ai-memory embed --force` without `--project` now re-embeds every project in
the workspace and purges stale/superseded embedding rows in the same scope.
+- Windows hook `cwd` values sent to a Linux server now resolve projects by the
+ final path component instead of treating the full backslash path as the
+ project name.
## [0.2.0] - 2026-05-26
### Added
diff --git a/crates/ai-memory-hooks/src/router.rs b/crates/ai-memory-hooks/src/router.rs
index f4b64c43..0f3fa809 100644
--- a/crates/ai-memory-hooks/src/router.rs
+++ b/crates/ai-memory-hooks/src/router.rs
@@ -354,9 +354,6 @@ async fn resolve_project_ids(
// server still resolve to the final component.
let s = path.to_str()?;
let name = s.rsplit(['/', '\\']).find(|seg| !seg.is_empty())?;
- if name.is_empty() {
- return None;
- }
Some(name.to_string())
}