On Windows, open() without explicit encoding uses the system locale (cp1252/etc.), which can cause OSError errno 22 'Invalid argument' when reading/writing the UTF-8 .env file. Fix: gate encoding kwargs behind _IS_WINDOWS check so Linux/macOS code paths are completely unchanged. Only Windows gets explicit encoding='utf-8' on load_env() and save_env_value(). |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| auth.py | ||
| banner.py | ||
| callbacks.py | ||
| codex_models.py | ||
| colors.py | ||
| commands.py | ||
| config.py | ||
| cron.py | ||
| doctor.py | ||
| gateway.py | ||
| main.py | ||
| models.py | ||
| pairing.py | ||
| runtime_provider.py | ||
| setup.py | ||
| skills_hub.py | ||
| status.py | ||
| tools_config.py | ||
| uninstall.py | ||