Skip to content

bug: payment pending can show an older attempt's amount on a repeat #2135

Backlog

Description

@ovitrif

Payment Pending's amount lookup for a repeated amountless invoice (AppViewModel.earlierLightningSendSats) has two edges:

  • An older row wins over a live hold. If a 1 000-sat attempt fails while its Activity update is deferred, and a fresh 2 000-sat attempt then goes pending, the older row still reads PENDING. Pending shows 1 000 sats, and Success can carry that amount when settlement supplies none (SendPendingScreen).
  • A cache read error skips Pending. With no usable Activity row, the lookup reads the cache after the payment is tracked as pending. If that read throws an I/O error, the send flow skips Pending navigation and the immediate check for an already-settled Spark payment.

Expected

Pending shows the amount of the attempt it waits on, and a failed lookup falls back to the draft amount instead of interrupting navigation.

Found in @pwltr's review of #2071 (#2071 (review)).

Activity

  1. added this to the 3.3.0 milestone on Nov 26, 2026
  2. added theissue type on Nov 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions