Skip to content

Catch the exception when command is not found - #119

Closed
afiodorov wants to merge 1 commit into
openai:mainfrom
afiodorov:catch_exception
Closed

afiodorov wants to merge 1 commit into
openai:mainfrom
afiodorov:catch_exception

Conversation

@afiodorov

@afiodorov afiodorov commented Apr 16, 2025 •

Copy link
Copy Markdown

Seems to work now, codex itself wrote the code :)

user
run command mcp

    thinking for 4s

    command

    $ mcp

    command.stdout (code: 1, duration: 0s)

    Error: spawn mcp ENOENT

    codex
    It looks like the mcp command wasn’t found in this environment (ENOENT). Could you let me know what mcp refers to or where it’s expected to be? If it’s part of a toolchain or a script in the repo, we may need to install it or adjust your PATH.

@afiodorov afiodorov mentioned this pull request Apr 16, 2025
@tibo-openai

Copy link
Copy Markdown
Collaborator

dco check and ci are both failing

ci failure:

Run npm run format

> @openai/[email protected][6](https://github.com/openai/codex/actions/runs/14503098371/job/40687741901?pr=119#step:5:7)1241 format
> prettier --check src tests

Checking formatting...
[warn] src/utils/agent/sandbox/raw-exec.ts
[warn] Code style issues found in the above file. Forgot to run Prettier?
Error: Process completed with exit code 1.

dco

Error: ❌  DCO check failed.

Commits missing the 'Signed-off-by:' footer:
f070dba

🛠 **Quick fix (make ONE signed commit):**
    git fetch origin
    git reset --soft origin/main
    git commit -s -m "<your message>"
    git push --force-with-lease

🔧 **Fix individual commits:**
    git rebase -i origin/main --exec "git commit --amend -s --no-edit"
    git push --force-with-lease

💡  Or edit the commit message in GitHub UI and add:
    Signed-off-by: Your Name <[email protected]>
Error: Process completed with exit code 1.

see https://github.com/openai/codex?tab=readme-ov-file#developer-certificate-of-origin-dco.

@tibo-openai

Copy link
Copy Markdown
Collaborator

This is now done in a more general way, closing.

@github-actions github-actions Bot locked and limited conversation to collaborators Apr 17, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants