RE: RE: Looks, Words and Sats
You are viewing a single comment's thread from:

RE: Looks, Words and Sats

Words
678
Reading
4 min
8d
  1. The initial build had a "report skin" button but I removed it and decided to just make it simple to ignore that users skin. Next update will make sure that we never load custom skins from people that you have personally muted, or those with negative reputation.

As for 2 I'll go full ai answer as its much more familiar with the hiveauth part of the codebase then I am


I’d handle this as two tracks — a tiered device matrix, and a reconnect hardening pass. We already have attach_req/backoff/60-second expiry in the client, but it currently reacts to a socket close. On mobile, the tab can be suspended without a clean close, so I’d add resume triggers (visibilitychange, pageshow, online) and persist pending-request metadata so a reload/discard can still attach within the relay window.

Device matrix

TierDevices / walletsWhat we test
1 — release gateKeychain Mobile on Android + iOS; Safari iOS and Chrome Android; desktop Chrome/Firefox with QRLogin, vote, comment, transfer, image upload, keepsats, reject, timeout, session expiry, 3-action auto-send
2 — supportedHiveAuth Mobile; Keychain Mobile’s in-app browser; Safari/Edge desktop; older Android/iOSSame core flows, best-effort
3 — resiliencePage reload, OS tab discard, airplane-mode toggle, low-power mode, multi-account, account without an active keyCorrect failure and no duplicate broadcast

For every run I’d record build SHA, device/OS/browser, wallet version, network (Wi-Fi/cellular), and background duration (10s, 30s, 55s), with a screenshot for failures.

Image upload is now part of Tier 1 — it uses the image host’s /cs/ checksum endpoint, so the request is a 47-byte challenge rather than the whole file.

Reconnecting after backgrounding
What we already do:
One logical request at a time, keyed by the relay uuid.
On an unexpected socket close after the request is accepted, reconnect with backoff (500 ms → 4 s) and send attach_req.
attach_ack resumes waiting; attach_nack fails with “request expired before it could be resumed — check the chain before retrying a transaction”.
The relay’s 60-second expiry is the hard deadline. No blind retry after attach_nack, to avoid duplicate broadcasts.

What I’d add:
On visibilitychange, pageshow, and online, if there is a pending request and the socket is not OPEN, close it and reconnect immediately instead of waiting for a close event or the next backoff tick. This is the important gap for iOS/Android suspension.
Persist a small pending record in sessionStorage: {uuid, kind, account, expire}. For login, also keep the temporary auth key (same trust level as the session key) so a reload within 60 seconds can attach_req and finish the login. For signing, if resume fails, mark the queue item failed and tell the user to check the chain rather than retrying automatically.
Show explicit state in the UI: “Waiting for wallet… reconnecting (attempt 2)… expires in 34s”. If the tab was hidden past expiry, cancel cleanly and explain.
Keep auto-send sequential. One timeout stops the batch and leaves the remaining items for manual retry. Before a batch, add a hint: “Keep Keychain Mobile open in the foreground; each request has a 60-second approval window.”

Known limitations
The relay only holds a request for 60 seconds, and we can’t extend that.
Keychain Mobile only surfaces a pending request when it’s foregrounded/reopened; there’s no site-side push. That’s a wallet behaviour, not something we can fix in the web app.
If the OS kills the page entirely, an in-flight request is lost unless we’ve persisted the pending metadata; even then, signing can only be resumed if the session key is still valid.
We should never silently retry a transaction after an ambiguous attach_nack, because we can’t tell whether the wallet already broadcast it.

Acceptance for calling it done
Tier 1 matrix passes on Android + iOS, including 10/30/55-second background cycles.
Mocked socket-drop, tab-reload and attach_nack tests pass in the automated suite.
A 3-action HiveAuth auto-send completes one approval at a time, and a timeout stops the batch without duplicate transactions.
A real HiveAuth image upload succeeds through /cs/ on both Android and iOS.

That gives us a repeatable matrix rather than ad-hoc testing, and makes the resume path work for the normal mobile case — browser backgrounded, wallet in front — without pretending we can recover from a full OS kill or a missed 60-second window.

@ausbitbank: The initial build | Ecency