mirror of
https://github.com/openai/codex.git
synced 2026-04-26 23:55:25 +00:00
app-server: Add platform os and family to init response (#14527)
This allows the client to pick os-specific behavior while interacting with the app server, e.g. to use proper path separators.
This commit is contained in:
committed by
GitHub
parent
3aabce9e0a
commit
50558e6507
@@ -560,7 +560,11 @@ impl MessageProcessor {
|
||||
}
|
||||
|
||||
let user_agent = get_codex_user_agent();
|
||||
let response = InitializeResponse { user_agent };
|
||||
let response = InitializeResponse {
|
||||
user_agent,
|
||||
platform_family: std::env::consts::FAMILY.to_string(),
|
||||
platform_os: std::env::consts::OS.to_string(),
|
||||
};
|
||||
self.outgoing
|
||||
.send_response(connection_request_id, response)
|
||||
.await;
|
||||
|
||||
Reference in New Issue
Block a user