Skip to content

Ensure web adapter session IDs survive duplicated tabs#679

Draft
schickling wants to merge 2 commits intodevfrom
codex/implement-feature-and-create-unit-tests
Draft

Ensure web adapter session IDs survive duplicated tabs#679
schickling wants to merge 2 commits intodevfrom
codex/implement-feature-and-create-unit-tests

Conversation

@schickling
Copy link
Collaborator

Summary

  • gate the persisted session id behind a Web Locks rendezvous so duplicate tabs mint a fresh id before starting the leader worker
  • add a Playwright regression that boots two tabs with a cloned sessionStorage snapshot and asserts the second tab re-keys itself
  • document the Web Locks requirement and how to opt into a shared session id via adapter options
  • explain in code comments why the session-id lock acquisition loops, re-mints candidates when another tab holds the lock, and link back to the duplicated-tab spec in issue Client document state isn't properly isolated when using browser "Duplicate tab" feature #377 for future reference

Testing

  • direnv exec . mono lint --fix

https://chatgpt.com/codex/tasks/task_e_68d02dad79048329a2efe66623096637

@schickling schickling added the help wanted Extra attention is needed label Sep 23, 2025
@schickling schickling marked this pull request as draft September 23, 2025 07:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

adapter:web codex help wanted Extra attention is needed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants