fix(ci): canonicalize verbatim Tomcat roots on Windows and match the plain agent reply style in e2e

Skip canonicalizing a bare drive prefix such as `\\?\C:`, which opens the volume device and fails
with ERROR_INVALID_FUNCTION. Update the agent approval e2e to the plain reply and 6px prompt radius
introduced in #2118.
Цей коміт міститься в:
l0ng-ai committed 2026-11-08 16:47:44 +08:00
1 джерело 48c5ba51b6
коміт a176548961
2 files changed
+8 -3

No files matched your search

+4
Переглянути файл
@@ -401,6 +401,10 @@ fn canonical_path(path: &Path) -> IdeResult<PathBuf> {
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() => {}
+4 -3
Переглянути файл
@@ -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);