Normalizes GitHub CLI (gh) and git environment variables when a GitHub token is present
in the resolved sandbox environment:
Mirrors GH_TOKEN <-> GITHUB_TOKEN so both gh CLI and git/API tools authenticate seamlessly.
Sets GH_PROMPT_DISABLED=1 and GIT_TERMINAL_PROMPT=0 to prevent headless container hangs.
When userAttribution.IsUserDelegated is true (3LO), sets GIT_AUTHOR_NAME and GIT_AUTHOR_EMAIL
to the human user while keeping GIT_COMMITTER_NAME / GIT_COMMITTER_EMAIL as the MJ Agent
(so GitHub renders "User authored and Agent committed").
Normalizes GitHub CLI (
gh) andgitenvironment variables when a GitHub token is present in the resolved sandbox environment:GH_TOKEN<->GITHUB_TOKENso bothghCLI andgit/API tools authenticate seamlessly.GH_PROMPT_DISABLED=1andGIT_TERMINAL_PROMPT=0to prevent headless container hangs.userAttribution.IsUserDelegatedis true (3LO), setsGIT_AUTHOR_NAMEandGIT_AUTHOR_EMAILto the human user while keepingGIT_COMMITTER_NAME/GIT_COMMITTER_EMAILas the MJ Agent (so GitHub renders "User authored and Agent committed").