Skip to content

Fix empty process-control environment resets - #133

Merged
chrisknvidia merged 2 commits into
NVIDIA:mainfrom
RyaliNvidia:codex/fix-empty-loader-environment
Sep 11, 2026
Merged

chrisknvidia merged 2 commits into
NVIDIA:mainfrom
RyaliNvidia:codex/fix-empty-loader-environment

Conversation

@RyaliNvidia

@RyaliNvidia RyaliNvidia commented Sep 9, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Tier 3 task generation intentionally sets process-loader variables such as BASH_ENV, ENV, LD_PRELOAD, and PYTHONPATH to empty strings so inherited loader configuration is cleared. In local mode, _filter_command_env() rejected those names without considering the value, causing generated tasks to stop before agent execution.

This change:

  • drops an empty value only after its name matches the existing process-control blocklist;
  • continues to reject every non-empty blocked value;
  • preserves unrelated empty environment variables, where set-to-empty may differ from unset; and
  • adds focused regression coverage and a changelog entry.

Fixes #132.

Verification

  • I am familiar with the Contributing Guidelines
  • Added or updated focused tests
  • Updated documentation for user-visible changes
  • Ran the exact make lint command (python -m ruff check src tests): passed
  • Ran the exact make test command (python -m pytest): 5,967 passed and 51 skipped; the sole failure, test_exec_cancellation_terminates_background_descendants, reproduces on pristine main under Linux amd64-on-arm64 emulation, while the native Python 3.13 CI suite passes
  • Focused local-environment tests: 18 passed
  • Ran the exact make build command (python -m build): passed
  • Did not add credentials, private datasets, or proprietary benchmark content

Release Impact

  • No user-visible release note needed
  • Updated CHANGELOG.md

@chrisknvidia chrisknvidia left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG]: Tier 3 local mode rejects its own empty managed loader variables

2 participants