Skip to content

fix(web): prevent conflicting endpoint sessions during saves - #47393

Open
lyzno1 wants to merge 2 commits into
mainfrom
codex/endpoint-save-drawer
Open

lyzno1 wants to merge 2 commits into
mainfrom
codex/endpoint-save-drawer

Conversation

@lyzno1

@lyzno1 lyzno1 commented Nov 27, 2026 •

Copy link
Copy Markdown
Member

An endpoint create or edit drawer could be dismissed and reopened while the previous save was still pending. The earlier save could then close the new drawer, and the submitted fields could still be changed while the save was in flight.

The existing endpoint mutations are owned by the list or card and already refresh the list. Keep dismissal available and show progress on the corresponding action. Block opening another session for that action until its mutation settles, without preventing interaction with unrelated endpoints. Keep the disabled opener focusable so the drawer can restore focus. Freeze the submitted settings and prevent delete or enable/disable on the endpoint while its update is pending.

Fixes SNP-1311

Validation

  • Reproduced on main in Chromium: dismiss and reopen while the first request is pending, then let the first save resolve and observe the new drawer close.
  • Idle create and edit drawer screenshots matched main byte-for-byte; inspected the new pending action indicator.
  • Two Chromium scenarios using the contract-validated fake API: create and edit, delayed save, close with Escape, focus restoration, blocked keyboard reactivation and available action when the write settles.
  • 35 related unit tests (including error/retry and endpoint mutation policies), Web type check, browser spec policy, and changed-file checks passed.
  • Independent review completed.

@github-actions github-actions Bot added size:L This PR changes 100-499 lines, ignoring generated files. web This relates to changes on the web. and removed size:L This PR changes 100-499 lines, ignoring generated files. labels Nov 27, 2026
@lyzno1
lyzno1 marked this pull request as ready for review November 27, 2026 11:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:L This PR changes 100-499 lines, ignoring generated files. web This relates to changes on the web.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant