fix(exec): prevent shell startup files from overriding daemon env#73969
fix(exec): prevent shell startup files from overriding daemon env#73969vincentkoc merged 1 commit intomainfrom
Conversation
|
Closing this PR because the author has more than 10 active PRs in this repo. Please reduce the active PR queue and reopen or resubmit once it is back under the limit. You can close your own PRs to get back under the limit. |
Greptile SummaryThis PR adds a Confidence Score: 5/5This PR is safe to merge; the change is narrow, well-tested, and correctly preserves all existing fallback paths. All changed logic is covered by new or updated tests, the shell detection and fallback ordering are unchanged, and getPosixShellArgs handles every reachable shell name correctly — including the bare 'sh' fallback string and full resolved paths. No files require special attention. Reviews (2): Last reviewed commit: "fix(exec): prevent shell startup files f..." | Re-trigger Greptile |
|
Codex review: needs maintainer review before merge. Keep this PR open. Current main still launches POSIX exec shells with plain Maintainer follow-up before merge: Keep this PR open for maintainer review and landing if the shell-startup suppression behavior is accepted and the changed gate passes. The implementation should remain narrow to Best possible solution: Keep this PR open for maintainer review and landing if the shell-startup suppression behavior is accepted and the changed gate passes. The implementation should remain narrow to Acceptance criteria:
What I checked:
Likely related people:
Remaining risk / open question:
Codex review notes: model gpt-5.5, reasoning high; reviewed against 8c8f3969856f. |
ceb3f67 to
ce0273b
Compare
Repair contributor PR #40200 against current main bb6a15d. Keep the patch narrow to src/agents/shell-utils.ts and src/agents/shell-utils.test.ts. Preserve existing shell selection and PATH fallback behavior, keep or add regression coverage for zsh -f -c, bash --noprofile --norc -c, fish --no-config -c, sh fallback, invalid/non-interactive shell handling, and Windows PowerShell default behavior. Address the prior Greptile fish fallback note and Codex review notes about the non-interactive shell helper and PATH-based fallback. Run /review on the repaired latest head and run pnpm check:changed before any merge recommendation. Credit NewdlDewdl and link source PR #40200.
ProjectClownfish replacement details:
! [remote rejected] HEAD -> fix/issue-40179-exec-launchd-env (refusing to allow a GitHub App to create or update workflow
.github/workflows/auto-response.ymlwithoutworkflowspermission)error: failed to push some refs to 'https://github.com/NewdlDewdl/openclaw.git'