From 819817b705518ffe378aeedb0d993e9e8dc97d49 Mon Sep 17 00:00:00 2001 From: Paul Bakaus Date: Thu, 3 Sep 2026 13:37:45 -0700 Subject: [PATCH] context tests: the verbatim-prefix strip spells the prefix once Co-Authored-By: Claude Fable 5.1 Claude-Session: https://claude.ai/code/session_01Vau2X53xGTjjTCXWMVBoNY --- crates/context/src/critique_storage.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/context/src/critique_storage.rs b/crates/context/src/critique_storage.rs index b4cceba8e..c40b617f5 100644 --- a/crates/context/src/critique_storage.rs +++ b/crates/context/src/critique_storage.rs @@ -694,10 +694,10 @@ mod tests_660 { std::time::SystemTime::now().duration_since(std::time::UNIX_EPOCH).unwrap().as_nanos() )); std::fs::create_dir_all(&base).unwrap(); - // Like Node's `realpathSync`: no `\\\\?\\` verbatim prefix on Windows, + // Like Node's `realpathSync`: no `\\?\` verbatim prefix on Windows, // so paths the verb joins with `/` resolve under this root. let real = std::fs::canonicalize(&base).unwrap().to_string_lossy().into_owned(); - real.strip_prefix(r"\\\\?\\").map(str::to_string).unwrap_or(real) + real.strip_prefix(r"\\?\").map(str::to_string).unwrap_or(real) } fn run_capture(cwd: &str, args: &[&str]) -> (i32, String, String) {