#!/bin/bash
export GIT_PAGER=cat PAGER=cat
cd /tmp/agents
git add pr-review-shared/lib/ask-ai.js pr-review-shared/lib/__tests__/ask-ai.test.js
git -c user.name="Gautam AI" -c user.email="gautamai@icloud.com" commit -m "fix(pr-review): scrub PWD/OLDPWD to sandbox so env cannot leak bot cwd

Codex [blocking]: overriding spawn cwd is necessary but not sufficient —
agentic CLIs and any shells/tools they spawn consult \$PWD/\$OLDPWD for
repo context, and the inherited PWD points at the reviewer app dir (set
by start.sh). Scrub PWD/OLDPWD to the sandbox dir too, with a regression
test asserting the child env's cwd-context vars never point back at
process.cwd()." 2>&1 | tail -6
echo "=== push ==="
git push origin feat/ai-reviewer-repo-context-fix 2>&1 | tail -5
git log --oneline -3
echo "DONE_S11"
