Repository navigation
fix(browser-pay): retry the relay until the total deadline #1248
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
ratataque
merged 23 commits into
main
from
cursor/browser-pay-relay-retry-deadline-1ef9
Oct 20, 2026
Merged
Changes from all commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
64db4cd
test(browser-pay): repro relay_in_progress failing the pause
cursoragent 7f9b150
fix(browser-pay): poll the same key on relay_in_progress
cursoragent fb47dd8
wip(browser-pay): retry the relay until the total deadline
cursoragent 2bdc35d
Merge branch 'cursor/browser-pay-relay-in-progress-1ef9' into cursor/…
cursoragent 11b222a
style(browser-pay): format the relay_in_progress test
cursoragent 42013e4
fix(browser-pay): retry the relay until the total deadline
cursoragent 21e2fff
merge(browser-pay): bring main flake fix into the in-progress poll
cursoragent 719426c
merge(browser-pay): bring the in-progress poll and main flake fix int…
cursoragent 59046ba
fix(browser-pay): share the relay_in_progress poll across identical p…
cursoragent 3a8da30
merge(browser-pay): share the relay poll and keep the attempt cap
cursoragent 93a5600
fix(browser-pay): cap each shared relay attempt and reject bad deadlines
cursoragent bda1954
fix(browser-pay): treat a relay that resolves after detach as detached
cursoragent 398a8ca
merge(browser-pay): detached relay resolution into the retry branch
cursoragent 6e3733a
fix(browser-pay): retry an attempt abort even when the relay rejects …
cursoragent 703312e
ci(browser-pay): rerun checks after an unrelated opencode timeout
cursoragent 1fcae12
test(browser-pay): cover a later pause after the first deadline
cursoragent 76efe0b
merge(browser-pay): later-pause coverage into the retry branch
cursoragent 1b545cb
docs(browser-pay): say non-2xx statuses fail the paused request
cursoragent cbb2f2a
merge(browser-pay): bring main into the in-progress poll
cursoragent 9af035a
merge(browser-pay): bring main and the updated poll into the retry br…
cursoragent 4939cfe
test(browser-pay): relaunch Chrome when DevToolsActivePort never appears
cursoragent 5412eef
merge(browser-pay): Chrome startup retry into the retry branch
cursoragent 8794ddb
merge(browser-pay): bring the squashed in-progress poll into the retr…
cursoragent File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| --- | ||
| "@sapiom/browser-pay": patch | ||
| --- | ||
|
|
||
| Retry a paused card relay on attempt timeout, transport failure, and router HTTP 502, 503, or 504, using the same idempotency key, until the total deadline. One attempt defaults to 25 seconds. The total wait defaults to 55 seconds. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🩺 Stability & Availability | 🟡 Minor | ⚡ Quick win
Relax the upper bound on the abort timing.
attemptTimeoutMsis 120 ms. The assertionaborts[0] < 160leaves only 40 ms for timer and event-loop delay. Node timers can fire late when the event loop is busy. A shared CI runner can easily delay a timer by more than 40 ms, so this assertion can fail without a code defect. The test is meant to prove that the shared attempt is aborted once, at the attempt timeout and not the total deadline. That deadline is 2 000 ms. An upper bound well below the deadline still proves this.Proposed fix
📝 Committable suggestion
🤖 Prompt for AI Agents