fix: unblock macOS exec host build

This commit is contained in:
Peter Steinberger
2026-01-18 16:44:26 +00:00
parent 081123c0e4
commit cf7437cb4c
2 changed files with 8 additions and 6 deletions

View File

@@ -28,7 +28,7 @@ private struct ExecApprovalSocketDecision: Codable {
var decision: ExecApprovalDecision
}
private struct ExecHostSocketRequest: Codable {
fileprivate struct ExecHostSocketRequest: Codable {
var type: String
var id: String
var nonce: String
@@ -37,7 +37,7 @@ private struct ExecHostSocketRequest: Codable {
var requestJson: String
}
private struct ExecHostRequest: Codable {
fileprivate struct ExecHostRequest: Codable {
var command: [String]
var rawCommand: String?
var cwd: String?
@@ -48,7 +48,7 @@ private struct ExecHostRequest: Codable {
var sessionKey: String?
}
private struct ExecHostRunResult: Codable {
fileprivate struct ExecHostRunResult: Codable {
var exitCode: Int?
var timedOut: Bool
var success: Bool
@@ -57,13 +57,13 @@ private struct ExecHostRunResult: Codable {
var error: String?
}
private struct ExecHostError: Codable {
fileprivate struct ExecHostError: Codable {
var code: String
var message: String
var reason: String?
}
private struct ExecHostResponse: Codable {
fileprivate struct ExecHostResponse: Codable {
var type: String
var id: String
var ok: Bool
@@ -254,7 +254,7 @@ enum ExecApprovalsPromptPresenter {
}
@MainActor
enum ExecHostExecutor {
fileprivate enum ExecHostExecutor {
private static let blockedEnvKeys: Set<String> = [
"PATH",
"NODE_OPTIONS",

View File

@@ -440,6 +440,8 @@ extension MenuSessionsInjector {
displayName: "Gateway",
platform: platform,
version: nil,
coreVersion: nil,
uiVersion: nil,
deviceFamily: nil,
modelIdentifier: nil,
remoteIp: host,