diff --git a/crates/ide-run/src/tomcat.rs b/crates/ide-run/src/tomcat.rs index 1352976f6..828af5272 100644 --- a/crates/ide-run/src/tomcat.rs +++ b/crates/ide-run/src/tomcat.rs @@ -401,6 +401,10 @@ fn canonical_path(path: &Path) -> IdeResult { std::path::Component::CurDir => {} _ => resolved.push(component), } + // A bare drive prefix such as `\\?\C:` names the volume device, which cannot be canonicalized. + if !resolved.has_root() { + continue; + } match dunce::canonicalize(&resolved) { Ok(path) => resolved = path, Err(e) if e.kind() == std::io::ErrorKind::NotFound && fs::symlink_metadata(&resolved).is_err() => {} diff --git a/e2e/agentApproval.spec.ts b/e2e/agentApproval.spec.ts index 13b10b33f..a742cf887 100644 --- a/e2e/agentApproval.spec.ts +++ b/e2e/agentApproval.spec.ts @@ -112,9 +112,10 @@ for (const theme of ["dark", "light"] as const) { }); expect(geometry.scroll).toBe(geometry.client); expect(geometry.contained).toBe(true); - expect(geometry.promptRadius).toBeLessThanOrEqual(4); - expect(geometry.replyBackground).not.toBe("rgba(0, 0, 0, 0)"); - expect(geometry.replyBorder).toBe("1px"); + expect(geometry.promptRadius).toBeLessThanOrEqual(6); + // Replies read as plain text on the panel. + expect(geometry.replyBackground).toBe("rgba(0, 0, 0, 0)"); + expect(geometry.replyBorder).toBe("0px"); expect(geometry.userOnRight).toBe(true); expect(geometry.approvalAligned).toBe(true); expect(geometry.authorBeforeWork).toBe(true);