All your AI agent sessions in one place — browse, search, resume. Rust + GPUI.
Rust
test: platform-neutral expectations for memory source ids; ZCode hash lowercases by path shape
Corey Chiu16158985b502
diff --git a/crates/wake-core/src/adapters/zcode.rs b/crates/wake-core/src/adapters/zcode.rsindex 5ca3d2f..722ce49 100644--- a/crates/wake-core/src/adapters/zcode.rs+++ b/crates/wake-core/src/adapters/zcode.rs@@ -522,7 +522,9 @@ impl AgentAdapter for ZcodeAdapter {/// 记忆目录名 `<slug>-<hash>` 里的 hash:sha256(工作区路径) 的十六进制前 16 位/// (源码 memory/project-root.ts:路径先 `resolve`——这里只剥收尾分隔符——win32 再-/// 小写)。库里 session.directory 就是那条工作区路径,算一遍就能对上+/// 小写)。库里 session.directory 就是那条工作区路径,算一遍就能对上。"win32 小写"按+/// **路径形态**判(盘符 / UNC 开头)而不按运行平台:远程镜像里 Linux 主机的 POSIX 路径+/// 在 Windows 上照样不能小写,反过来亦然(2026-09-22 Windows CI)pub fn memory_dir_hash(workspace: &str) -> String {let trimmed = workspace.trim_end_matches(std::path::is_separator);let key = if trimmed.is_empty() {@@ -530,7 +532,9 @@ pub fn memory_dir_hash(workspace: &str) -> String {} else {trimmed};- let key = if cfg!(windows) {+ let windows_shaped = key.starts_with("\\\\")+ || matches!(key.as_bytes(), [drive, b':', ..] if drive.is_ascii_alphabetic());+ let key = if windows_shaped {key.to_lowercase()} else {key.to_string()diff --git a/crates/wake-core/tests/adapter_contracts.rs b/crates/wake-core/tests/adapter_contracts.rsindex 6161f14..6b3c798 100644--- a/crates/wake-core/tests/adapter_contracts.rs+++ b/crates/wake-core/tests/adapter_contracts.rs@@ -3885,7 +3885,8 @@ fn instruction_files_join_the_memory_layer() {"CLAUDE.md",MemoryScope::User,home.path()- .join(".claude/CLAUDE.md")+ .join(".claude")+ .join("CLAUDE.md").to_string_lossy().to_string(),),@@ -3903,7 +3904,8 @@ fn instruction_files_join_the_memory_layer() {"AGENTS.md",MemoryScope::User,home.path()- .join(".codex/AGENTS.md")+ .join(".codex")+ .join("AGENTS.md").to_string_lossy().to_string(),),@@ -3911,7 +3913,8 @@ fn instruction_files_join_the_memory_layer() {"safety.rules",MemoryScope::User,home.path()- .join(".codex/rules")+ .join(".codex")+ .join("rules").to_string_lossy().to_string(),),@@ -3929,7 +3932,8 @@ fn instruction_files_join_the_memory_layer() {"GEMINI.md",MemoryScope::User,home.path()- .join(".gemini/GEMINI.md")+ .join(".gemini")+ .join("GEMINI.md").to_string_lossy().to_string(),),@@ -4005,7 +4009,7 @@ fn instruction_files_join_the_memory_layer() {sources.extend(wake_core::adapters::project_instruction_sources(AgentId::Codex,));- let agents_md = home.path().join(".codex/AGENTS.md");+ let agents_md = home.path().join(".codex").join("AGENTS.md");let docs = codex.list_memories(&sources,