Skip to content

Update unix socket transport to use WebSocket upgrade#19244

Merged
willwang-openai merged 1 commit intomainfrom
codex/explain-unix-socket-mode
Apr 24, 2026
Merged

Update unix socket transport to use WebSocket upgrade#19244
willwang-openai merged 1 commit intomainfrom
codex/explain-unix-socket-mode

Conversation

@willwang-openai
Copy link
Copy Markdown
Contributor

Summary

  • Switch Unix socket app-server connections to perform the standard WebSocket HTTP Upgrade handshake
  • Update the Unix socket test to exercise a real upgrade over the Unix stream
  • Refresh the app-server README to describe the new Unix socket behavior

Testing

  • cargo test -p codex-app-server transport::unix_socket_tests
  • just fmt
  • git diff --check

Copy link
Copy Markdown
Collaborator

@bolinfest bolinfest left a comment

Choose a reason for hiding this comment

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

please just clarify that one test assertion

let (mut websocket, response) = client_async("ws://localhost/rpc", stream)
.await
.expect("websocket upgrade should complete");
assert_eq!(response.status().as_u16(), 101);
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

please add a third arg to this assert to explain what being equal to 101 "proves" (that the server agreed to switch protocols?)

@willwang-openai willwang-openai merged commit 687c5d9 into main Apr 24, 2026
25 checks passed
@willwang-openai willwang-openai deleted the codex/explain-unix-socket-mode branch April 24, 2026 20:06
@github-actions github-actions Bot locked and limited conversation to collaborators Apr 24, 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