View Issue Details

IDProjectCategoryView StatusLast Update
0012153Talerwallet (iOS App)public2026-11-24 05:52
Reporterbot-cg [agent]  
ImplementerMarcS  
PrioritynormalSeverityminor 
Status implementing 
Target Version1.7 
Summary0012153: Transaction pages that offer the user no way to remove the transaction: Suspend/Resume are developer-only, Retry is never shown, and nothing is shown while the connection is stalled
DescriptionThe transaction page (TransactionSummaryList) shows exactly the actions
wallet-core lists in txActions: isDeleteable / isAbortable / isFailable are
txActions.contains(...) (Transaction.swift:398-400), with no fallback. Where
wallet-core lists none of delete, abort, fail (see the wallet-core sibling of
this issue), what the app adds on top decides whether the user sees anything
at all. Three things make that worse on iOS.

1. Suspend and Resume are shown in developer mode only
   (`if developerMode && withActions { suspendResume(common) }`,
   TransactionSummaryList.swift:316). For a state whose only actions are
   Suspend and Retry, a normal user sees no action.
2. Retry is decoded (TxAction.retry, with a title and an icon) and never
   rendered by any view.
3. While controller.stalledConnection is set, the page shows neither the
   details nor the action buttons
   (`if !controller.stalledConnection { ... if withActions { abortFailDelete(common) } }`,
   :334-343). A transaction that is stuck BECAUSE the payment service is
   unreachable is the one the user most wants to abort or delete.

Recorded example (10 fuzzing episodes, e.g. c2h-10-e00004 screen 32, developer
mode ON): a bank-integrated withdrawal waiting for the user's legitimization.
The page shows

    Pending / Withdrawal / [Suspend] / 9 November 2026 at 14:10 / kyc
    "You need to pass a legitimization procedure." [Open legitimization website]

and nothing else. With developer mode off, the Suspend button is gone too. A
user who will not do the KYC keeps this withdrawal in the wallet for good.

Also: refresh transactions are requested only in developer mode
(includeRefreshes: developerMode, BalancesSectionView.swift:71,88,97, and
false for the recent list :62). A refresh that failed or hangs is invisible
to a normal user, and so cannot be deleted by one.

Suggested, in order of how little they change: show the action buttons also
when the connection is stalled; show Retry; and decide per state what a user
who wants the entry gone is offered ("abandon and accept the loss" being a
legitimate, if hard, answer). No patch: the last point is a product decision
that belongs with the wallet-core sibling.
TagsNo tags attached.
Attached Files
12153-retry-and-actions-while-stalled.diff (3,544 bytes)   
diff --git a/TalerWallet1/Model/Model+Transactions.swift b/TalerWallet1/Model/Model+Transactions.swift
index 60a4ec3a..896bd275 100755
--- a/TalerWallet1/Model/Model+Transactions.swift
+++ b/TalerWallet1/Model/Model+Transactions.swift
@@ -147,6 +147,17 @@ struct ResumeTransaction: WalletBackendFormattedRequest {
         var transactionId: String
     }
 }
+/// A request to retry a wallet transaction now instead of waiting for its back-off.
+struct RetryTransaction: WalletBackendFormattedRequest {
+    struct Response: Decodable {}   // no result - getting no error back means success
+    var operation: String { "retryTransaction" }
+    func args() -> Args { Args(transactionId: transactionId) }
+
+    var transactionId: String
+    struct Args: Encodable {
+        var transactionId: String
+    }
+}
 // MARK: -
 extension WalletModel {
     /// ask wallet-core for its list of transactions filtered by state
@@ -198,4 +209,10 @@ extension WalletModel {
         logger.notice("resumeTransaction: \(transactionId, privacy: .private(mask: .hash))")
         _ = try await sendRequest(request, viewHandles: viewHandles)
     }
+
+    nonisolated func retryTransaction(transactionId: String, viewHandles: Bool = false) async throws {
+        let request = RetryTransaction(transactionId: transactionId)
+        logger.notice("retryTransaction: \(transactionId, privacy: .private(mask: .hash))")
+        _ = try await sendRequest(request, viewHandles: viewHandles)
+    }
 }
diff --git a/TalerWallet1/Views/Transactions/TransactionSummaryList.swift b/TalerWallet1/Views/Transactions/TransactionSummaryList.swift
index d475186d..c03c4cdf 100755
--- a/TalerWallet1/Views/Transactions/TransactionSummaryList.swift
+++ b/TalerWallet1/Views/Transactions/TransactionSummaryList.swift
@@ -245,6 +245,16 @@ struct TransactionSummaryList: View {
 
     @ViewBuilder
     func abortFailDelete(_ common: TransactionCommon) -> some View {
+        // wallet-core offers Retry in every waiting state, and in some of them nothing else
+        // (e.g. a funded withdrawal that waits for the payment service). It was decoded,
+        // titled and given an icon, and no view ever showed it.
+        if talerTX.isRetryable {
+            TransactionButton(transactionId: common.transactionId,
+                                    command: .retry,
+                                    warning: nil,
+                                 didExecute: $ignoreThis,
+                                     action: model.retryTransaction)
+        } // Retry button
         if talerTX.isAbortable {
             let warning = String(localized: "Are you sure you want to abort this transaction?")
             TransactionButton(transactionId: common.transactionId,
@@ -340,8 +350,10 @@ struct TransactionSummaryList: View {
                                       effective: $effective,    // return amount for "Pay <amount> now"
                                        possible: $paymentPossible,
                                         hasDone: hasDone)
-                    if withActions { abortFailDelete(common) }
                 }
+                // Not inside the check above: a transaction that is stuck BECAUSE the payment
+                // service cannot be reached is the one the user most wants to abort or delete.
+                if withActions { abortFailDelete(common) }
             }.id(viewId)    // change viewId to enforce a draw update
             .listStyle(myListStyle.style).anyView
             .background(FullBackground())

Required notifications

Address or linkRemarkAdded byNotifiedActions

Relationships

child of 0012147 implementing iOS wallet: state the user can never delete -- audit against the rule that every item must be individually removable [meta] 

Activities

bot-cg [agent]

2026-11-16 01:13

updater   ~0030538

A patch for the two parts of this that need no product decision
(12153-retry-and-actions-while-stalled.diff). It compiles (BUILD SUCCEEDED,
Debug, iOS simulator, 2026-11-16, on top of the 12142 patch which touches the
same file); it has NOT been run against a transaction in such a state.

 1. Retry. Adds the retryTransaction request to the model and renders the
    button whenever wallet-core lists the action (isRetryable). Title, icon
    and progress text for it already existed.
 2. The Abort / Abandon / Delete buttons are no longer inside
    `if !controller.stalledConnection`, so a transaction stuck because the
    payment service cannot be reached can still be aborted or deleted.

Not in the patch: making Suspend / Resume available outside developer mode,
and what to offer in the states where wallet-core lists neither delete, abort
nor fail (12154).

bot-cg [agent]

2026-11-20 00:02

updater   ~0030657

Rebased patch for master 16f6f629: retry-and-actions-while-stalled-v16f6f629.diff. The earlier attachment conflicts in TransactionSummaryList.swift since the tosBaseUrl onChange block was added there; this one keeps that block and applies cleanly. The change itself is the same as before.

What was checked on 16f6f629, and what was not:
- it compiles (xcodebuild, simulator, Debug) on 16f6f629 with only this patch applied;
- the half that keeps Abort/Delete available while the connection is stalled is part of the build my UI suite ran on (155 scenarios, 16f6f629 plus my other open patches);
- the Retry button half has only been compiled on 16f6f629. Its run was on the code this report was filed against. I will add a note when it has been run on the new master.
retry-and-actions-while-stalled-v16f6f629.diff (3,352 bytes)   
diff --git a/TalerWallet1/Model/Model+Transactions.swift b/TalerWallet1/Model/Model+Transactions.swift
index 60a4ec3a..896bd275 100755
--- a/TalerWallet1/Model/Model+Transactions.swift
+++ b/TalerWallet1/Model/Model+Transactions.swift
@@ -147,6 +147,17 @@ struct ResumeTransaction: WalletBackendFormattedRequest {
         var transactionId: String
     }
 }
+/// A request to retry a wallet transaction now instead of waiting for its back-off.
+struct RetryTransaction: WalletBackendFormattedRequest {
+    struct Response: Decodable {}   // no result - getting no error back means success
+    var operation: String { "retryTransaction" }
+    func args() -> Args { Args(transactionId: transactionId) }
+
+    var transactionId: String
+    struct Args: Encodable {
+        var transactionId: String
+    }
+}
 // MARK: -
 extension WalletModel {
     /// ask wallet-core for its list of transactions filtered by state
@@ -198,4 +209,10 @@ extension WalletModel {
         logger.notice("resumeTransaction: \(transactionId, privacy: .private(mask: .hash))")
         _ = try await sendRequest(request, viewHandles: viewHandles)
     }
+
+    nonisolated func retryTransaction(transactionId: String, viewHandles: Bool = false) async throws {
+        let request = RetryTransaction(transactionId: transactionId)
+        logger.notice("retryTransaction: \(transactionId, privacy: .private(mask: .hash))")
+        _ = try await sendRequest(request, viewHandles: viewHandles)
+    }
 }
diff --git a/TalerWallet1/Views/Transactions/TransactionSummaryList.swift b/TalerWallet1/Views/Transactions/TransactionSummaryList.swift
index 9a0b6590..a3385e7e 100755
--- a/TalerWallet1/Views/Transactions/TransactionSummaryList.swift
+++ b/TalerWallet1/Views/Transactions/TransactionSummaryList.swift
@@ -275,6 +275,16 @@ struct TransactionSummaryList: View {
 
     @ViewBuilder
     func abortFailDelete(_ common: TransactionCommon) -> some View {
+        // wallet-core offers Retry in every waiting state, and in some of them nothing else
+        // (e.g. a funded withdrawal that waits for the payment service). It was decoded,
+        // titled and given an icon, and no view ever showed it.
+        if talerTX.isRetryable {
+            TransactionButton(transactionId: common.transactionId,
+                                    command: .retry,
+                                    warning: nil,
+                                 didExecute: $ignoreThis,
+                                     action: model.retryTransaction)
+        } // Retry button
         if talerTX.isAbortable {
             let warning = String(localized: "Are you sure you want to abort this transaction?")
             TransactionButton(transactionId: common.transactionId,
@@ -366,8 +376,10 @@ struct TransactionSummaryList: View {
                             }
                         }
                     }
-                    if withActions { abortFailDelete(common) }
                 }
+                // Not inside the check above: a transaction that is stuck BECAUSE the payment
+                // service cannot be reached is the one the user most wants to abort or delete.
+                if withActions { abortFailDelete(common) }
             }.id(viewId)    // change viewId to enforce a draw update
             .listStyle(myListStyle.style).anyView
 

bot-cg [agent]

2026-11-20 00:03

updater   ~0030658

Correction to my note above: the second bullet is wrong. The build my UI suite ran on does not contain any part of this patch -- what it carries in TransactionSummaryList.swift is the change from 0012142. So for master 16f6f629 the rebased patch here has been compiled only; neither half (Abort/Delete while stalled, Retry button) has been run on it yet. Both ran on the code this report was filed against.

bot-cg [agent]

2026-11-23 23:12

updater   ~0030814

The Retry half of retry-and-actions-while-stalled-v16f6f629.diff has now been run on master 16f6f629 (iPhone 17 simulator, iOS 27.2, GNU_Taler, 2026-11-24). Until now it had only been compiled there.

Case: a bank-integrated withdrawal of KUDOS 5 from an exchange that demands KYC for it. The transaction settles as pending, "Legitimization required". Open Balances > the pending entry > the withdrawal.

    unpatched the page has no action button at all: after the details
                    card ("Using payment service: ...") it ends. No
                    retryTransaction request in the log.
    with the patch a "Retry now" button is the last section of the page.
                    Tapping it sends retryTransaction for the withdrawal;
                    wallet-core logs "resetting retry timeout for
                    txn:withdrawal:..." and immediately issues a new
                    /kyc-check long-poll. The button reads "Retrying...".
                    No error is shown or logged.

Two runs with the patch, both with this result; four runs without it, none showing a button. See 12153-retry-run.jpg (the pages are scrolled to the end; on an iPhone 17 the button starts at y=837 of 874, so it is below the fold until the user scrolls).

Builds: "unpatched" is master 16f6f629 plus my test branch, which carries the change of 0012142 in TransactionSummaryList.swift and nothing of this patch. "With the patch" additionally has this patch and those of 0012299, 0012297, 0012306 and the 7058 title of 0011934; of these only this one touches TransactionSummaryList.swift or Model+Transactions.swift.

Not established:
- how long the button stays on "Retrying..." -- the last screen was captured right after the tap;
- the other half of the patch (Abort / Abandon / Delete stay available while the connection is stalled) has still not been run on 16f6f629. Note that this page shows no Abort or Delete button in either build, so for a KYC-gated withdrawal the patch gives the user Retry but still no way to remove the transaction -- the first point of this report stands.
12153-retry-run.jpg (80,778 bytes)   
12153-retry-run.jpg (80,778 bytes)   

bot-cg [agent]

2026-11-23 23:13

updater   ~0030815

Correction to my note above: "four runs without it" should read three. Three unpatched runs reached the withdrawal page (2026-11-24 00:04, 00:07, 00:11 local) and none showed a button; a fourth run stopped earlier, on Balances, and says nothing about the page. The two patched runs are as stated.

bot-cg [agent]

2026-11-24 05:52

updater   ~0030818

The other half of retry-and-actions-while-stalled-v16f6f629.diff -- Abort / Abandon / Delete stay available while the connection is stalled -- has now been run on master 16f6f629 as well, as an A/B. With this, both halves of the patch have been run there. See 12153-abort-while-stalled.jpg.

How the state is reached. controller.stalledConnection is set while any request with a progress token is stalled. A request made from a sheet (I tried a pay-template link) cannot show the effect: the sheet covers the app, Cancel ends the stalled state, and the sheet cannot be swiped away. The mailbox refresh has a progress token and no sheet (Model+TalDir.swift:389-390), so:

 1. a wallet with a mailbox and a registered alias; send KUDOS 0.01 to that alias, which leaves a pending transfer ("ready");
 2. cut the network (wallet-core's test hook that drops every request);
 3. open Settings > Taler Directory > Mailbox -- refreshMailbox goes out and stalls, the "Network is slow..." banner comes up;
 4. go back to Balances and open the pending transfer.

Result (iPhone 17 simulator, iOS 27.2, GNU_Taler, 2026-11-24, developer mode on):

    without the patch the page shows Suspend, the date and state, "Copy JSON",
                        and the box "Couldn't establish a connection / Request
                        timed out after 5000 ms / Retry now / Cancel".
                        No Abort. The amounts, the QR code and the share
                        buttons are not shown either.
    with the patch the same, plus "Retry now" and "Abort" above the box.

One run each; the patched side needed a second attempt because the first one did not get past app launch. Abort was not pressed: with the network cut it could not have completed.

Builds: both sides are master 16f6f629 plus my test branch plus the patches of 0012299, 0012297, 0012306, 0012308 and the 7058 title of 0011934; side A has this report's patch, side B is the same tree with it reversed and rebuilt. The 0012306 patch is what makes step 3 work on demand; on master the same refresh is issued at launch and when the app returns from more than 30 s in the background, so the state arises there without it, only not when a test asks for it.

Two things the screenshot shows that the patch does not address:
- the box on this page is about the mailbox refresh, not about this transfer: its "Retry now" retries the refresh and its "Cancel" closes the page. With the patch the page has two "Retry now" buttons that do different things;
- while the box is shown the transfer's own details stay hidden (the same `if !controller.stalledConnection`, TransactionSummaryList.swift:350).
12153-abort-while-stalled.jpg (52,958 bytes)   
12153-abort-while-stalled.jpg (52,958 bytes)   

Issue History

Date ModifiedUsernameFieldChange
2026-11-15 19:38bot-cgNew Issue
2026-11-15 19:38bot-cgRelationship addedchild of 0012147
2026-11-15 19:38bot-cgImplementer => MarcS
2026-11-15 19:38bot-cgReviewer => bernaalp
2026-11-15 19:38bot-cgDeployed by => mikolai
2026-11-15 19:38bot-cgVerifier => Florian Dold
2026-11-15 19:38bot-cgCommunicator => CM_7
2026-11-15 20:09Christian GrothoffReviewerbernaalp => avalos
2026-11-15 20:09Christian GrothoffRelease signed by => MarcS
2026-11-15 20:09Christian GrothoffDeployed bymikolai => MarcS
2026-11-15 20:09Christian GrothoffStatusnew => implementing
2026-11-15 20:09Christian GrothoffTarget Version => 1.7
2026-11-16 01:13bot-cgFile Added: 12153-retry-and-actions-while-stalled.diff
2026-11-16 01:13bot-cgNote Added: 0030538
2026-11-20 00:02bot-cgFile Added: retry-and-actions-while-stalled-v16f6f629.diff
2026-11-20 00:02bot-cgNote Added: 0030657
2026-11-20 00:03bot-cgNote Added: 0030658
2026-11-23 23:12bot-cgNote Added: 0030814
2026-11-23 23:12bot-cgFile Added: 12153-retry-run.jpg
2026-11-23 23:13bot-cgNote Added: 0030815
2026-11-24 05:52bot-cgNote Added: 0030818
2026-11-24 05:52bot-cgFile Added: 12153-abort-while-stalled.jpg