Skip to content

Autonomous development for real products. Governed agents build from specs you approve, follow the rules you set, and nothing merges until another agent proves it. Your decisions, judgement and taste are the bar that work must clear. Declare your vision and let agents build it.

fix(view): retain scrolling-target press guard [N26,C7]

Corey Olson60a9671d79a0
diff --git a/test/cockpit/stable.js b/test/cockpit/stable.js
index ddeae111..f9f606ee 100644
--- a/test/cockpit/stable.js
+++ b/test/cockpit/stable.js
@@ -118,7 +118,7 @@ export async function waitForStableBoxes(chrome, find = 'document.documentElemen
/**
* Press an uncovered, stable target through real Chrome input, optionally using a browser button or modifier.
* A pointer move can change hover layout, so wait again after it and refuse a changed point rather than retrying.
- * Compare viewport geometry: background document scrolling cannot move a fixed dialog target under that pointer.
+ * Fixed dialog targets use viewport geometry; flowing targets retain the document-scroll guard as well.
* @param {object} chrome
* @param {string} find
* @param {{ native?: boolean, button?: string, modifiers?: number, afterMouseDown?: () => Promise<void> }} [options] - Optionally observe work while the real pointer remains held.
@@ -133,7 +133,11 @@ export async function press(chrome, find, { native = true, button = 'left', modi
const element = (${find}), rect = element.getBoundingClientRect(), x = rect.x + rect.width / 2, y = rect.y + rect.height / 2;
const hit = document.elementFromPoint(x, y);
if (!rect.width || !rect.height || !hit || (hit !== element && !element.contains(hit))) throw Error('shared press: target is hidden or covered: ' + ${JSON.stringify(find)});
- return { x, y, width: rect.width, height: rect.height };
+ let viewportFixed = false;
+ for (let ancestor = element; ancestor; ancestor = ancestor.parentElement) {
+ if (getComputedStyle(ancestor).position === 'fixed') { viewportFixed = true; break; }
+ }
+ return { x, y, width: rect.width, height: rect.height, ...(viewportFixed ? {} : { scrollX, scrollY }) };
})()`;
const point = await rawChromeEvaluation(chrome, pointExpression);
const raw = clients.get(chrome);