forked from lukas/nixos-config
commit_and_push previously ran `git add -A`, which would sweep up any unrelated uncommitted work already sitting in the working tree (not just what the Builder itself wrote this turn) into its commit. stash_foreign_changes now stashes (push --include-untracked) whatever was already dirty before Codex runs, so the tree Codex/git add -A sees only ever contains this job's own changes; restore_foreign_changes pops it back afterward regardless of success/failure (wrapped in try/finally in process_job). Covered by a real tempdir git-repo integration test, not just mocks. |
||
|---|---|---|
| .. | ||
| builder.py | ||
| listener.py | ||
| test_agent_codex.py | ||
| worker.py | ||