mirror of
https://github.com/stablyai/orca.git
synced 2026-11-19 04:23:57 +00:00
Disable commit/tag GPG signing via a cached wrapper GIT_CONFIG_GLOBAL when the developer's global gitconfig enables signing, clear inherited GIT_CONFIG_GLOBAL in GitBinaryTestFixture, strip inherited TERM_PROGRAM* in Vitest setup, and run ssh-posix-command-wrapper shell checks against an empty HOME/ZDOTDIR/XDG_CONFIG_HOME. Fixes #27210 Co-authored-by: outof-place <contact@outofplace.space>
17 lines
577 B
TypeScript
17 lines
577 B
TypeScript
// Clear the launching terminal’s inherited Orca identity so test branches depend on fixture env, not which agent launched runner.
|
||
// Clear the launching terminal's identity too: macOS /etc/zshrc and /etc/bashrc source /etc/{zsh,bash}rc_$TERM_PROGRAM.
|
||
for (const name of [
|
||
'ORCA_AGENT_SESSION_ID',
|
||
'ORCA_STRUCTURED_SESSION',
|
||
'ORCA_WORKTREE_ID',
|
||
'ORCA_WORKSPACE_ID',
|
||
'ORCA_RUNTIME_SOURCE_ID',
|
||
'ORCA_RUNTIME_SOURCE_INCARNATION',
|
||
'ORCA_RUNTIME_SOURCE_PROFILE_PATH',
|
||
'TERM_PROGRAM',
|
||
'TERM_PROGRAM_VERSION',
|
||
'TERM_SESSION_ID'
|
||
]) {
|
||
delete process.env[name]
|
||
}
|