Skip to content

Fix ETH send flow and affirmative confirmations#2

Open
dlkakbs wants to merge 1 commit intomainfrom
fix/base-eth-send-confirmation
Open

Fix ETH send flow and affirmative confirmations#2
dlkakbs wants to merge 1 commit intomainfrom
fix/base-eth-send-confirmation

Conversation

@dlkakbs
Copy link
Copy Markdown
Owner

@dlkakbs dlkakbs commented Apr 5, 2026

Summary

  • add native ETH send support on Base alongside existing USDC sends
  • accept affirmative follow-ups like evet/yes for pending confirmations instead of falling back to chat mode
  • update send intent parsing and bot copy to reflect ETH send support

@vercel
Copy link
Copy Markdown

vercel bot commented Apr 5, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
lexon Ready Ready Preview, Comment Apr 5, 2026 9:52pm

Copy link
Copy Markdown

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

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: 442dbf6884

ℹ️ 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 +343 to +344
delete state.pendingConfirmations[confirmationKey];
saveState(state);
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Do not clear pending confirmation before guard re-check

consumePendingConfirmationAction deletes the user's pending confirmation immediately, but handleCommand still calls requireHighValueConfirmation for the returned action (send/swap/bridge). Because the pending record is already gone, the guard creates a new confirmation instead of allowing execution, so affirmative replies like evet/yes never complete the transaction and keep re-prompting for confirmation.

Useful? React with 👍 / 👎.

Comment on lines +229 to +230
const amountMatch = normalized.match(/(\d+(?:[.,]\d{1,6})?)/);
const amount = amountMatch?.[1]?.replace(",", ".");
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 Avoid extracting send amount from address digits

The deterministic send parser takes the first numeric token from the entire message, which can come from the recipient address when users put the address before the amount. In inputs like “send to 0x... 1 ETH”, amount becomes 0 (or other address digits), the parser returns a malformed send action, and the LLM fallback is skipped, leading to false invalid-amount errors for otherwise valid commands.

Useful? React with 👍 / 👎.

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