Skip to content

fix(sandboxing): initialize network proxy config inline - #31830

Merged
jif-oai merged 1 commit into
mainfrom
fcoury/fix-network-proxy-clippy
Jul 9, 2026
Merged

fix(sandboxing): initialize network proxy config inline#31830
jif-oai merged 1 commit into
mainfrom
fcoury/fix-network-proxy-clippy

Conversation

@fcoury-oai

Copy link
Copy Markdown
Contributor

Why

PR #31767 flattened NetworkProxyConfig, leaving the seatbelt test setup to assign fields directly after NetworkProxyConfig::default(). Rust 1.95 flags that pattern as clippy::field_reassign_with_default, and the macOS Bazel Clippy job treats the warning as an error, blocking main and PRs based on it.

What Changed

Initialize enabled and mode in the NetworkProxyConfig struct literal, then apply the Unix socket allowlist through the existing setter. This preserves the test behavior while satisfying Clippy.

How to Test

This is a test-only initialization change, so there is no manual product flow.

Targeted tests:

  • just test -p codex-sandboxing (65 passed)
  • just clippy -p codex-sandboxing

The local argument-comment lint could not complete because Bazel's LLVM repository is missing the compiler-rt BUILD package. The touched Rust diff was manually audited and adds no positional literal calls.

@jif-oai
jif-oai merged commit 2c85975 into main Jul 9, 2026
35 checks passed
@jif-oai
jif-oai deleted the fcoury/fix-network-proxy-clippy branch July 9, 2026 18:36
@github-actions github-actions Bot locked and limited conversation to collaborators Jul 9, 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