Repository navigation
Description
What happened?
The E2E staging profile-persistence test creates and edits a Pubky profile successfully, adds a contact, then closes and reopens Bitkit on the same wallet. After this restart, Profile shows Unable to load your profile, with Try Again and Disconnect, and the Copy action never becomes available.
The original failure screenshot and recording are from iOS. The collected iOS simulator logs contain no shared_state_busy message and no separate app-log archive was uploaded, so the iOS cause remains unconfirmed.
Expected behavior
The same saved Pubky identity and edited profile load after restarting Bitkit. The profile name, notes, link, tag, QR code and Copy action remain available. Restarting the app should not require recreating or disconnecting the profile.
Steps to Reproduce
- Start with a fresh Bitkit wallet and complete onboarding. The recorded runs use regtest with staging Pubky services.
- Open Profile and create a Pubky profile, for example Alice. Complete the Pay Contacts onboarding and confirm the profile name, QR code and Copy action are available.
- Edit the profile: change the name to Bob, add a note, a website link and a tag, then save. Confirm the edited profile is displayed.
- Add a valid Pubky contact and confirm it appears in Contacts.
- Fully close Bitkit and reopen it, keeping the same wallet and app data.
- Open Profile again. The saved profile does not load; the Copy action is unavailable and the screen shows loading or Unable to load your profile.
Logs / Screenshots / Recordings
Discovered by @pubky_profile_2 in the staging workflow attempt, Pubky shard job. Source artifact: 11530646902. Times below are UTC.
| Before restart | Failure after restart |
|---|---|
![]() |
![]() |
The before image is a frame at 110.00s of the attached recording. The failure image is the original E2E screenshot at 05:03:18.211 UTC, test retry 1.
2026-10-08-pubky-profile-after-restart-ios-recording-ready.mp4
05:03:18.965 E2E: element ("~ProfileCopy") still not displayed after 30000ms
test/helpers/profile.ts:432
test/specs/pubky-profile.e2e.ts:110
05:18:53.069 E2E: element ("~ProfileCopy") still not displayed after 30000ms
test/specs/pubky-profile.e2e.ts:110
The ZIP contains the matching simulator-log windows for retries 1 and 3, the profile-test transcript and revision metadata. Retry 3's recording also shows the same profile-load error after restart. Retry 2 failed to start Appium and did not execute this check.
2026-10-08-pubky-profile-after-restart-ios-logs.zip
Bitkit Version
2.5.0 (197), Debug E2E regtest simulator build; version read from the pinned build source. Paykit SDK 0.1.0-rc70.
Device / OS
iPhone 17 simulator, iOS 26.2 (GitHub Actions).
Reproducibility
Always in the executed E2E profile checks in this run: 2/2 (test retries 1 and 3). Retry 2 did not execute the check because Appium could not start. Manual device reproduction has not been rerun.
Additional context
The pinned test fails at line 110, the profile check immediately after closing/reopening the app. The later recovery-phrase wallet restoration starts at line 123 and is not reached by this failing test.
- App:
masterata231b829fff74643cf91d5d660395b15da6d7600. - E2E tests:
54978d9817e5bf311079b31733f8d9f71cf395f6. - Run
37726075986, workflow attempt1. The screenshot/recording use test retry1. - Environment: regtest app with staging Pubky services, fresh wallet, newly created Bitkit Pubky identity.
Related older report: #811 (closed), profile appearing missing after session restore fails following connection loss or clock changes. This report reproduces the profile-load failure with a fresh profile and a plain app restart.
Companion report: Android #1442.


Activity
ben-kaufman commentedon Oct 8, 2026
Fix prepared in #898. Profile display no longer waits for deferred private Paykit restoration: it can load the saved identity’s public fields and keep QR/Copy available, while editing still requires an authenticated profile. Same-identity display also survives a failed profile fetch after session recovery; sign-out and identity changes invalidate it.
131 focused native tests pass, including hosted read-only controls and recovery tests; no introduced formatting or translation findings. The original manager fails the new display assertions.
The original nightly logs do not establish the iOS restoration error. A live held-lock test was not completed: the disposable fixture stopped on an identity mismatch before sign-in or lock acquisition. That check remains open in the PR. The matching Android path was reproduced and verified with a real held lock in synonymdev/bitkit-android#1443. No safety waits or private-state backup behavior changed.