Skip to content

fix(askui-nodejs): only report a screenshot for the final waitUntil failure - #883

Merged
programminx-askui merged 1 commit into
mainfrom
fix/wait-until-screenshot-on-every-retry
Aug 10, 2026
Merged

fix(askui-nodejs): only report a screenshot for the final waitUntil failure#883
programminx-askui merged 1 commit into
mainfrom
fix/wait-until-screenshot-on-every-retry

Conversation

@programminx-askui

Copy link
Copy Markdown
Contributor

Summary

  • waitUntil reimplemented its own retry loop, treating every attempt as an independent step (own onStepBegin/onStepEnd), so a screenshot was captured and saved on every failed attempt instead of only the final one.
  • It now delegates to the existing retryStrategy-based retry mechanism (the same one predictCommandWithRetry already uses internally): one step, onStepRetry for intermediate failures, a single onStepEnd carrying the onFailure screenshot only for the truly final outcome.
  • Reported instructions from waitUntil are now prefixed with "waitUntil: " so these steps are recognizable in reports (e.g. Allure).

Test plan

  • New integration tests in ui-control-client.spec.ts (written first, confirmed red against the old implementation, green after the fix): success on first try, success after retries, final-failure-only screenshot, instruction prefix.
  • Full askui-nodejs test suite passes (npm test).
  • Lint clean (npm run lint).

🤖 Generated with Claude Code

…ailure

waitUntil re-implemented its own retry loop, treating every attempt as an
independent step with its own onStepBegin/onStepEnd, so a screenshot was
captured and saved on every failed attempt instead of only the final one.

Delegate to the existing retryStrategy-based retry mechanism instead (the
same one predictCommandWithRetry already uses internally): one step,
onStepRetry for intermediate failures, a single onStepEnd carrying the
onFailure screenshot only for the truly final outcome. Also tags the
reported instruction with a "waitUntil: " prefix so these steps are
recognizable in reports.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@programminx-askui
programminx-askui merged commit c182adc into main Aug 10, 2026
3 checks passed
@programminx-askui
programminx-askui deleted the fix/wait-until-screenshot-on-every-retry branch August 10, 2026 21:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant