fix(orders): a take that times out tells the user to try again, while its late reply may still open the trade
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 56/100
- Tipo di issue
- Bug
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Attiva
- Ambito
- backend, internationalization, mobile
Direzione di ricerca
Read rust/src/mostro/pending.rs, lib/core/daemon_errors.dart, and the translations referenced in CLAUDE.md § Translations; compare the existing invoice timeout handling from #615. Trace how take_order returns its timeout marker and how the take screen handles it. Done means a pending take has distinct copy in all six locales and offers no retry while it may still land, while final timeouts retain NoDaemonResponse.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Since #570, a take whose daemon reply arrives after the 10 s wait is no longer lost: the late reply lands the trade while the app runs (#566). But take_order still returns NoDaemonResponse at 10 s, and lib/core/daemon_errors.dart maps it to sessionTimeoutMessage: "No response received, check your connection and try again later".
What happens
From a manual test of #570 on regtest, with the take's wait shortened so every reply is late:
- The take screen shows "No response received… try again later".
- A second later the trade is there: the late reply landed it (
rebuilt trade row from take record … (#566)), andTradeActionListeneropens its next screen out of what looked like a failure. - Following the message, the user canceled the trade they did not know they had and took the order again. Had the first take not landed yet, retrying would have hit
CantDo(PendingOrderExists)(#566).
So the copy contradicts the contract (specs/004-mostro-p2p-client/contracts/orders.md: "A timeout is not final, though").
Expected
The same treatment #615 gave invoices: a distinct marker for a take the node has not answered yet (e.g. TakeAwaitingDaemon next to InvoiceAwaitingDaemon in rust/src/mostro/pending.rs), and its own copy in all six locales, along the lines of: "The node has not answered yet. If it accepts your take, the trade will open." No "try again".
NoDaemonResponse keeps its meaning for requests whose timeout is final.
Notes
- Rust returns the marker; Dart maps it (CLAUDE.md § Translations).
- The take screen should not offer a retry while the take may still land.
- Raised in the review of #570 (point 3).
- Lingua principale
- Dart
- Stelle
- 11
- Fork
- 9
- Merge medio
- 2g 1h
- PR unite (30g)
- 16
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di MostroP2P/app
-
documentation priority: low
Difficoltà 2/5 1-3 ore Idoneità per principianti 73/100
I maintainer di solito rispondono entro 1 giorno
-
area: ui bug priority: medium
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
I maintainer di solito rispondono entro 1 giorno
-
area: ui bug priority: high
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
I maintainer di solito rispondono entro 1 giorno
-
Bug: Button "Share logs" does nothingForse già presa @Luquitasjeffrey l’ha presa 7 giorni fa. Aperta
Difficoltà 2/5 Mezza giornata Idoneità per principianti 62/100
I maintainer di solito rispondono entro 1 giorno
-
area: rust-core bug priority: low
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di MostroP2P/app
Issue simili
-
Python example: list a model's scenes and their camerasForse già presa @rudraparmar76 l’ha presa oggi. Apertadocumentation good first issue python
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
iamahsanmehmood/openskp#796 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
needs triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
-
Plural rendering: first matching part wins, but gen-l10n lets the last one win (=1 shadows one)Apertabug help wanted
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
crowdin/flutter-sdk#97 ·
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 63/100
MrSpideyNihal/lockfeed#16 ·
-
enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
InlitX/GymMane#529 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno