Repository navigation
Bind remote-control sessions to their authentication owner - #44341
Merged
copyberry[bot] merged 1 commit intoSep 9, 2026
Conversation
## Why Remote-control connections and queued operations must not carry over to a different signed-in user or account. Token refreshes for the same identity should preserve the live relay connection. ## What changed - Scope relay state and authentication recovery to a login lifetime. Retire the session on logout or identity changes and leave remote control disabled until enabled again. - Reject stale incoming messages and queued RPCs, and cancel pending remote-control operations when their authentication owner changes. - Start replacement sessions with fresh client, replay, and enrollment state, and prevent retired sessions from publishing status into their replacements. - Serialize enrollment and preference persistence across sessions, retaining write permits through caller cancellation and draining admitted writes on shutdown. ## Testing Add regression coverage for same-owner refreshes, user and account changes, stale pairing and client-revocation work, unauthorized enrollment recovery after logging in again, and persistence during cancellation. GitOrigin-RevId: 5e6ecd23588aab1e2e6168a21f575fb24bbb341c
copyberry
Bot
force-pushed
the
copyberry/codex-internal-to-codex-oss/5e6ecd23588aab1e2e6168a21f575fb24bbb341c
branch
from
September 9, 2026 23:59
3874c78 to
1bff94e
Compare
copyberry
Bot
deleted the
copyberry/codex-internal-to-codex-oss/5e6ecd23588aab1e2e6168a21f575fb24bbb341c
branch
September 9, 2026 23:59
kwon0516
temporarily deployed
to
issue-triage
September 10, 2026 00:02 — with
GitHub Actions
Inactive
kwon0516
temporarily deployed
to
issue-triage
September 10, 2026 00:02 — with
GitHub Actions
Inactive
kwon0516
temporarily deployed
to
issue-triage
September 10, 2026 00:02 — with
GitHub Actions
Inactive
apurban810-creator
temporarily deployed
to
issue-triage
September 10, 2026 00:07 — with
GitHub Actions
Inactive
apurban810-creator
temporarily deployed
to
issue-triage
September 10, 2026 00:07 — with
GitHub Actions
Inactive
apurban810-creator
temporarily deployed
to
issue-triage
September 10, 2026 00:07 — with
GitHub Actions
Inactive
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Bind remote-control sessions to their authentication owner
Why
Remote-control connections and queued operations must not carry over to a different signed-in user or account. Token refreshes for the same identity should preserve the live relay connection.
What changed
Testing
Add regression coverage for same-owner refreshes, user and account changes, stale pairing and client-revocation work, unauthorized enrollment recovery after logging in again, and persistence during cancellation.