You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 62eb122
Browse filesBrowse the repository at this point in the historyBrowse files
fix(scroll): refuse an unreadable capture before scroll top/bottom decides
`scroll bottom` coerced a failed or sparse capture to an empty tree, which
the edge analyzer reads as "no hidden content below", so it reported
"Already at bottom" about a screen it never saw.
Both scroll loops now run on one `runScrollPasses` loop in capture-kit:
observe, refuse an unreadable observation, ask the caller's stop
condition, then spend a pass. The daemon defines the refusal once
(`scrollCaptureRefusal`, built on `sparseCaptureQuality`) and both
`scroll top`/`scroll bottom` and `scroll --until` pass it in, so an
edge scroll now fails with `scroll_edge_capture_unreadable` instead of
an edge verdict.
Fixes#2468
`scroll ${edge} reached the safety limit before the snapshot showed the edge`,
173
237
{
@@ -176,21 +240,13 @@ export async function runScrollEdgePasses<TResult>(params: {
176
240
passes,
177
241
hint: 'The scoped scroll container still reports hidden content. Run scroll <dir> --until <selector> to stop on the element you are after, or snapshot -i to inspect the current state.',
`scroll ${edge} could not read the screen: ${refusal.detail}`,
341
+
{
342
+
reason: 'scroll_edge_capture_unreadable',
343
+
edge,
344
+
captureRefusal: refusal.reason,
345
+
hint:
346
+
refusal.reason==='no-capture'
347
+
? 'Run snapshot -i to see whether the app is producing an accessibility tree at all, and retry once it does.'
348
+
: 'The accessibility tree came back sparse, so it cannot show whether content remains. Run screenshot, inspect the image, and navigate by coordinates until snapshot -i reports a full tree.',
0 commit comments