Skip to content

app-server: switch remote control to protocol v3 segmentation#20341

Merged
euroelessar merged 6 commits into
mainfrom
ruslan/app-server-remote-control-segmentation-v3
May 1, 2026
Merged

app-server: switch remote control to protocol v3 segmentation#20341
euroelessar merged 6 commits into
mainfrom
ruslan/app-server-remote-control-segmentation-v3

Conversation

@euroelessar

Copy link
Copy Markdown
Collaborator

Why

Remote-control protocol v3 makes segmentation an explicit wire-level feature. The app-server transport needs to support that protocol directly so large messages can be chunked, acknowledged, replayed, and reassembled consistently.

What changed

  • Bump the remote-control websocket protocol version from 2 to 3.
  • Add explicit client/server chunk envelope variants plus chunk-aware acknowledgements.
  • Split oversized outbound server messages into bounded transport chunks.
  • Reassemble ordered inbound client chunks with bounded memory usage and stream/client invalidation handling.
  • Track inbound chunk cursors and outbound ack cursors as (seq_id, segment_id) so duplicate chunks and partial replays behave correctly.
  • Add focused coverage for chunk splitting, reassembly, duplicate suppression, and stream replacement behavior.

Validation

  • Added targeted unit coverage for segmented message handling in remote_control.
  • Local validation is currently blocked before compilation because packageproxy does not serve the locked rustls-webpki 0.103.13 dependency required by the workspace.

@euroelessar euroelessar marked this pull request as ready for review April 30, 2026 18:10

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: f70c546ec3

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread codex-rs/app-server/src/transport/remote_control/websocket.rs Outdated
Comment thread codex-rs/app-server/src/transport/remote_control/websocket.rs Outdated
Comment thread codex-rs/app-server/src/transport/remote_control/websocket.rs Outdated
@euroelessar euroelessar merged commit 972b819 into main May 1, 2026
25 checks passed
@euroelessar euroelessar deleted the ruslan/app-server-remote-control-segmentation-v3 branch May 1, 2026 01:27
@github-actions github-actions Bot locked and limited conversation to collaborators May 1, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants