Skip to content

Mobile Cap settings revert when independent saves finish out of order #3150

Closed

Description

@AksharP5

Description

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

  1. On iOS, open settings for an owned, password-protected Cap.
  2. Rename it while network responses are delayed.
  3. Remove the password before the rename response arrives.
  4. 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.

Additional Context

  • Baseline main: c5f24fc405dc032230c0fe98d1972466e68bf9f4.
  • 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

  1. linear commented on Oct 24, 2026

    @linear
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions