openai / openai/codex

Safety: avoid disabling macOS Wi-Fi network service during troubleshooting

Open
#41,123 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug model-behavior tool-calls
Dominant language
Rust
Stars
125k
Forks
19.4k
PR merge metrics
PR metrics pending

Description

Summary

Codex should avoid disabling core macOS network services during connectivity troubleshooting, or require a much stronger warning/confirmation before doing so.

During a troubleshooting session for a Mac Wi-Fi / Personal Hotspot connection problem, Codex executed:

networksetup -setnetworkserviceenabled Wi-Fi off

This disabled the macOS Wi-Fi network service and caused Network Settings to show Wi-Fi not configured. The service was later re-enabled with:

networksetup -setnetworkserviceenabled Wi-Fi on

The issue is not the original hotspot failure. The issue is that disabling the entire Wi-Fi network service was treated as a normal diagnostic step. This is materially different from toggling the Wi-Fi radio with networksetup -setairportpower.

Why this is risky

For users who are not comfortable with macOS network settings, this can make the computer appear broken or unable to connect to the internet. A user might lose work time, be unable to recover without another device, or assume the Mac needs repair.

This is also a self-defeating operation for an agent like Codex/ChatGPT: if the user's active internet connection depends on Wi-Fi, disabling the Wi-Fi network service can cut off the very network connection that Codex needs in order to continue assisting or recover from the mistake.

Expected behavior

  • Prefer read-only diagnostics and user-guided UI steps before changing system network configuration.
  • Clearly distinguish toggling Wi-Fi radio from disabling the Wi-Fi network service.
  • Avoid commands such as networksetup -setnetworkserviceenabled Wi-Fi off unless absolutely necessary.
  • If such a command is suggested, require an explicit high-risk confirmation that explains it may make Wi-Fi appear unconfigured or unavailable.
  • Avoid network-disabling actions when the user's current connection may depend on Wi-Fi.

Suggested guardrail

Treat disabling, deleting, or reconfiguring core network services as a high-risk local system operation, separate from simple connectivity troubleshooting.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No files, tests, or entry points are named. Start by locating the command-execution and confirmation or risk-classification paths, then trace how networksetup commands are handled. Done means core macOS network-service changes receive a high-risk warning or are avoided, with coverage for the Wi-Fi service command described here.

Written by the indexing model from the issue text.

Assessment

Tech stack
macos, rust, shell
Domain
devtools, operating-systems, security
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.