Repository navigation
Conversation
A text check that started during a full page load read the page before Sedum's page script was in the new document and stopped at once with text_unreadable, recorded as unsupported, so retries never applied. Treat an unreadable page like text not found yet and poll until the step's deadline; text still unreadable then fails the step. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01U7KCKub793DH4xshQbHCGd
|
Architecture Data flow Tip The diagrams are links. Click one to open it on the canvas, then press W or click play to walk through the change 🪧 More tips
Thanks for using PR Lens! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out on X, Bluesky, Mastodon, Reddit or LinkedIn |
|
Thanks for this, @bagrat, and for the clear repro ("click Send risk questionnaire" then a text wait during a full page load). #169 landed the next day from the same field report and already makes the text check treat an unreadable page as "not yet" and keep polling until the step's deadline ( What #169 didn't do is your second point: text that's still unreadable at the deadline was still recorded as unsupported, so Since this PR now conflicts with |
#169 made a text check keep polling while the page cannot be read. Text still unreadable at the deadline was recorded as could_not_run, so --retries never repeated the test. It now fails the step with text_unreadable. Follow-up to #169, taking the remaining part of #165. Amp-Thread-ID: https://ampcode.com/threads/T-8894897a-ba72-47ec-b40f-2aacd96b4545 Co-authored-by: Amp <amp@ampcode.com> Co-authored-by: Bagrat <bagrat@timeline.co>
What
verify …,wait until the text … is shown) that can't read the page treats it as "text not there yet" and keeps polling until the step's deadline.text_unreadable, instead of recording it as unsupported.Why
A text step that starts during a full page load reads the page before Sedum's page script exists in the new document.
executeTextAssertioncaught that read error and ended the step on the spot withtext_unreadable. That was recorded ascould_not_run, so--retriesnever applied.In our suite, "click Send risk questionnaire" followed by
wait until the text "Risk questionnaire" is shownfailed this way on every run. The server served the new page normally.Verification
text_unreadableat the deadline. Both fail onmainand pass here.pnpm typecheckandpnpm lintare clean,pnpm testpasses (1,446), and theflow-runner.stepsbrowser integration tests pass (20/20).text_unreadablepass first time on Linux/Chromium. An equivalent patch to the built package also fixed them on macOS/Chrome.