Skip to content

remote-control: harden stream sequencing - #21572

Closed
euroelessar wants to merge 1 commit into
mainfrom
ruslan/remote-control-gap-hardening
Closed

euroelessar wants to merge 1 commit into
mainfrom
ruslan/remote-control-gap-hardening

Conversation

@euroelessar

Copy link
Copy Markdown
Contributor

What changed

  • keep outbound server-envelope seq_id allocation contiguous by advancing only after payload staging succeeds
  • close only the affected stream on inbound seq_id gaps or segmented segment_id gaps
  • add focused regression coverage for gap handling and no-gap outbound staging
  • document the remote-control stream recovery contract in the app-server README

Why

The app-server must not continue streams after observable delivery gaps, and it must not create its own gaps by consuming sequence ids for payloads that never reach the wire. Enforcing both sides makes stream recovery deterministic across reconnects.

Validation

  • cargo test -p codex-app-server-transport transport::remote_control

@openai openai deleted a comment from sumioshi May 7, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Closing this pull request because it has had no updates for more than 14 days. If you plan to continue working on it, feel free to reopen or open a new PR.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant