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
Bug: Team membership refresh silently replaces unsaved roster selections #3584
P2 · Reproduced locally against 44e0dcf254975286c0e9dea443b5cd1ca6b23347. No production testing.
Concurrent team edits can silently erase local roster work and disable Save.
Reproduction:
Open Edit team with member A. Locally select member B without saving.
While open, another session adds member C, refreshing useTeamMembers.
Expected: Preserve the local selection or surface a remote-update conflict before replacing it.
Observed: The effect unconditionally replaces selectedMemberIds and initialMemberIdsRef with server A+C; local unsaved B disappears and dirty state is reset.
Evidence: Component probe selects B through the actual panel callback, rerenders with query A+C, and observes B absent without any mutation call.
Verification: Independently reran the five relevant observation/control tests; all passed. The actual dialogs and their form state execute in jsdom. The shared form editor preserves a newer pending-save draft in the control.
Proof boundary: Actual TeamEditDialog state/effect executed; query delivery and member-checklist control are mocked seams. No full browser/two-session run.
Acceptance: Reproduce the triggering sequence with a regression test, preserve the editable draft or refuse invalid input as described above, and retain the successful-save control.
Activity