You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Mobile Cap settings revert when independent saves finish out of order #3150
Changing two independent Cap settings on mobile can undo the newer change in the open settings sheet. For example, rename a Cap and then remove its password before the rename response arrives. When that older response arrives, the sheet shows Protected again even though password removal succeeded on the server.
The detail screen and the library settings sheet both replace their entire local Cap summary with each mutation response. A delayed response contains older values for fields changed by another request.
Reproduction
On iOS, open settings for an owned, password-protected Cap.
Rename it while network responses are delayed.
Remove the password before the rename response arrives.
Let password removal finish, then let the earlier rename response arrive.
Expected: the new title and Password Off both remain visible.
Actual: the title updates, but Password changes back to Protected. Reversing the request order can revert the displayed title. An earlier visibility response can also revert a later title change. Reopening the library settings sheet or reloading detail restores server state.
Six deterministic response-order regressions reproduce the issue across both screens. All six fail on baseline and pass when each action merges only its own field. The same run passes 68 adjacent checks on baseline and all 74 checks with the fix.
The tests render the production screens and invoke real title/password action helpers. Native prompts and API responses are controlled boundaries. No physical iOS/Android device was tested.
Local verification uses cached React/renderer 19.2.6 and Vitest 3.2.4, which differ from the lockfile. Native presentation and full mobile typecheck remain unverified locally because Expo dependencies are unavailable. This concerns incorrect local display state; backend writes remain saved.
Activity
linear commentedon Oct 24, 2026
CAP-906
feat(mobile-android): save notification preferences one at a time