Repository navigation
Conversation
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…sends Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…e wait Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…schemes Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…fixes Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…ow from quickpay Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…gain Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Contributor
Regtest APKDownload bitkit-dev-debug universal APK (expires in 30 days). |
23 tasks
26 tasks
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of #2105
Source: self, #2182
Warning
Do not publish the Wear app until #2152 ships. The watch runs the same Spark wallet as the phone, and Spark real-time sync is off (
realTimeSyncServerUrl = null), so two live instances share no state. Mainnet is also gated off in this build (Env.IS_MAINNET_ENABLED = false).Stacked on #2192 (
feat/wear-nfc). An audit of payments that take long to confirm (hold invoices, slow routes) found that the watch showed a misleading "Waiting for network" for about 60 s, a 3 s "Pending" that was easy to miss, and never told the wearer when a pending payment later succeeded or failed. This PR fixes that, without system notifications.Description
docs/wear.md› Pending payments) and hold-invoice journeys on the local stack.Out of Scope
wear: no system notifications for outcomes while the app is closed; the outcome shows at the next open.wear: keeping Spark connected for 3 min in the background is best effort: Android may freeze the process earlier. The next open finds the outcome either way.wear: an Unknown send that never reached Spark is never listed, so nothing is told and its QuickPay count stays until the entry expires after 30 days.wear: two resumes in a row can briefly flip a ready wallet to Connecting, so a link opened at that moment can end on "Wallet not ready" — fix: keep a ready wear wallet ready on a second resume #2194wear: an invoice the phone paid moments ago is caught at the hold, not before Review (the watch does not sync before Review, to keep taps and QuickPay fast).Design
N/A — no design available. #2105 is a prototype with no Figma.
Preview
Large round emulator (454 px, Wear OS 7), local
./sparkstack with Alice's hold invoices.Recordings:
send-hold-invoice-settle.mp4
send-hold-invoice-cancel.mp4
send-outcome-after-restart.mp4
QA Notes
Setup
Wear_Large_Round_API37with the local-stack build (journeys/wear/README.md› Local./sparkstack). Hold invoices come from the stack's Lightning node (Alice):journeys/wear/README.md› Payments › Hold invoices has thebolt11-receive-for-hash,bolt11-claim-for-hashandbolt11-fail-for-hashcommands. The test wallet funded on the local chain.Journeys
send-hold-invoice-pending.xml— paying a hold invoice shows Pending with the amount after about 10 ssend-hold-invoice-settle.xml— settling the hold invoice tells ✓ Sentsend-hold-invoice-cancel.xml— cancelling it tells ✕ failed and refunds the balancesend-pending-reopen.xml— reopening the pending invoice shows Pending with no second holdsend-paid-reopen.xml— reopening a paid invoice is refused before Reviewsend-outcome-after-restart.xml— an outcome reached while the app was killed shows at the next opensend-outcome-before-next-send.xml— a new send waits until an earlier outcome was shownManual Tests
journeys/wear/README.md)Automated Checks
SendOutcomeRepoTest.kt— watching, resolving live and at the next open, keeping an outcome until shown, the 3 min connection hold, QuickPay release, wipe racesSendOutcomeViewModelTest.kt,SendOutcomeOverlayTest.kt— when the overlay shows and waits (send flow, receive QR, lock, ambient), the pane titleSendResultTest.kt— one live status line across Pending → Sent and Pending → Failed, OK only on failureSendViewModelTest.kt— Pending after 10 s, live switch, waiting for earlier outcomes, reconnect after a NotReady hold, outcome under the lock screenPaymentsRepoTest.kt,UncertainSendStoreTest.kt— paid and in-flight invoices refused before Review, watched entries, a retry under a watched key told onceWalletRepoTest.kt,WalletWipeRecoveryTest.kt— pause and lock mark the wallet before they disconnect, an unlock during a lock's disconnect ends connectedEvidence
bc97b190d:just compile,just test(with:wear:testDevDebugUnitTest --rerun, 750 wear tests),just lintall passed.Wear_Large_Round_API37(Wear OS 7) at80e7b827bagainst the local./sparkstack: Pending with 1 000 about 10 s after the hold and no "Waiting for network"; settling showed ✓ once; reopening a pending invoice showed Pending without a hold, a paid one "Already paid"; afteram killthe outcome showed once at the next open; a new send waited until an earlier ✕ was shown. A regression pass ofsend-deeplink-bolt11,send-insufficient,send-own-invoice-guardandnfc-pay-backgroundpassed too.80e7b827bshowed ✕ "Payment failed, ₿ 1 000" but the balance stayed deducted until a reopen; fixed in2d7de6802(sync after an outcome) and checked on the emulator: the refund shows as the ✕ clears.send-offline-error.xmlfailed at80e7b827bwhen the app had been in the background as the network went: on the local stack (reached throughadb reverse, which survives airplane mode) a paused wallet came back Ready offline. Older than this PR; fixed in2b07fa9e7(a sync without a network ends Offline) and the journey passes on the emulator with the fix, also after a pause.Gaps
Models used
claude-opus-5-5(reasoning:medium)claude-fable-5-2(reasoning:medium)claude-fable-5-2(reasoning:medium),claude-opus-5-5(reasoning:medium)claude-sonnet-5-5(reasoning:medium)🤖 Generated with Claude Code