T23: the shell tests type a line only once the line editor reads raw keys: on CI's pwsh 7.6.6 the probe, typed right after the first folder report, came before PSReadLine's first read and was echoed, never run; shot warns when the app it runs under lacks Screen Recording, which left this Mac's pictures with the window's ground alone; AGENTS.md records the CI runners, the build without debuginfo and the typing rule
CI / platforms (ubuntu-24.04) (push) Successful in 1m14s
CI / platforms (windows-latest) (push) Successful in 2m23s
CI / macos (push) Successful in 10m26s

This commit is contained in:
ZacharyZhang-NY committed 2026-10-15 13:50:09 -04:00
1 parent de48f491bc
commit be8d0e20c5
5 files changed
+37 -4

No files matched your search

+6
View File
@@ -83,9 +83,15 @@ pub fn menus() -> Vec<String> {
/// Writes window `number` as a PNG.
pub fn snapshot(number: u32, path: &Path) -> anyhow::Result<()> {
use core_graphics::{
access::ScreenCaptureAccess,
geometry::{CGPoint, CGRect, CGSize},
window,
};
if !ScreenCaptureAccess.preflight() {
log::warn!(
"shot: the app shot runs under lacks Screen Recording, so the picture may hold the window's ground alone"
);
}
let image = window::create_image(
CGRect::new(&CGPoint::new(0.0, 0.0), &CGSize::new(0.0, 0.0)),
window::kCGWindowListOptionIncludingWindow,