Skip to content

fix(web3): keep pending transaction status in sync - #6805

Merged
crossle merged 8 commits into
masterfrom
fix/web3-pending-transaction-status
Nov 2, 2026
Merged

crossle merged 8 commits into
masterfrom
fix/web3-pending-transaction-status

Conversation

@SeniorZhai

Copy link
Copy Markdown
Member

No description provided.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 28, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-02T11:35:23.147988Z f1622b3 New commits
🔒 Security Review ✅ Completed 2026-11-02T11:36:34.043675Z f1622b3 New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@SeniorZhai
SeniorZhai force-pushed the fix/web3-pending-transaction-status branch from de4b308 to 7e33969 Compare October 30, 2026 09:42
@SeniorZhai SeniorZhai added the testing Now testing, but you can review label Nov 2, 2026

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: ccef70e6c1

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +1720 to +1721
web3TransactionDao.insertSuspend(remote)
return remote

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Prevent stale refresh responses from restoring pending status

When the detail-screen refresh overlaps with PendingTransactionRefreshHelper, a response containing pending can arrive after the helper has already persisted a terminal status. Since insertSuspend uses REPLACE, this unconditionally restores the transaction to pending, and refreshPendingTransaction() also changes the displayed status back. The raw transaction is already terminal at that point, so getPendingRawTransactions() excludes it and subsequent polling cannot repair the status. Make the persistence check atomic and prevent a pending response from overwriting an already-terminal local transaction; return the retained status to the UI as well.

Useful? React with 👍 / 👎.

@SeniorZhai SeniorZhai removed the testing Now testing, but you can review label Nov 2, 2026
@crossle
crossle merged commit 06c098e into master Nov 2, 2026
1 check passed
@crossle
crossle deleted the fix/web3-pending-transaction-status branch November 2, 2026 11:46
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