441400cf71
`tests/integration/test_modal_terminal.py` executes `tools/terminal_tool.py` in a new module via `importlib.util.module_from_spec`. The module-level `registry.register()` in `terminal_tool.py` updates the global registry with the new module's `check_terminal_requirements`, breaking subsequent tests that monkeypatch `tools.terminal_tool._get_env_config` (the registry uses the new module's globals, not the original). Save and restore the original registry entry after `exec_module` to prevent this pollution. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>