mirror of
https://github.com/NVIDIA/OpenShell.git
synced 2026-10-02 07:34:45 +08:00
* fix(python): add encoding=utf-8 to all file reads and writes in sandbox.py read_text(), fdopen() without encoding use the system locale, which can differ on non-UTF-8 systems. All config files (metadata.json, oidc_token.json, active_gateway) are UTF-8 text. * fix(python): catch UnicodeDecodeError in _read_oidc_token_bundle, add encoding tests Corrupt or non-UTF-8 oidc_token.json now returns None consistently. Add regression tests for non-ASCII UTF-8 paths in metadata, oidc token, and active_gateway files. * fix(python): use ensure_ascii=False in encoding tests, add from_active_cluster UTF-8 bytes test * fix(python): assert non-ASCII cluster name and endpoint in encoding test * fix(python): wrap long write_bytes line for ruff format * fix(python): apply ruff format to sandbox_test.py