Skip to content

[sdk]: skip timeout inference for terminal post requests#1000

Open
ddboy19912 wants to merge 1 commit into
mainfrom
fix/completed-request-timeout-inference
Open

[sdk]: skip timeout inference for terminal post requests#1000
ddboy19912 wants to merge 1 commit into
mainfrom
fix/completed-request-timeout-inference

Conversation

@ddboy19912

Copy link
Copy Markdown
Contributor

Fixes SDK status snapshots so completed post requests no longer get timeout events appended.

The change skips timeout inference when the indexed request statuses already contain a terminal status (DESTINATION or TIMED_OUT). This prevents stale or missing destination receipt lookups from causing completed Bifrost messages to appear timed out.

@ddboy19912 ddboy19912 requested a review from Wizdave97 June 27, 2026 00:52

if (receipt || request.timeoutTimestamp > destTimestamp) return commit(request)

const is_finished = request.statuses.find((item) => item.status === RequestStatus.DESTINATION)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why was this check not working?

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.

2 participants