`Failed to parse JSON result` endless loop

Resolved 💬 3 comments Opened May 5, 2025 by rivershah Closed Aug 7, 2025

What version of Codex is running?

0.1.2504301751

Which model were you using?

gemini-2.5-pro-exp-03-25

What platform is your computer?

_No response_

What steps can reproduce the bug?

codex --provider gemini
╭──────────────────────────────────────────────────────────────╮
│ ● OpenAI Codex (research preview) v0.1.2504301751            │
╰──────────────────────────────────────────────────────────────╯
╭──────────────────────────────────────────────────────────────╮
│ localhost session: 703cecc26a0548bda6990d6da3f1f773          │
│ ↳ workdir: /workspaces/atlas                                 │
│ ↳ model: gemini-2.5-pro-exp-03-25                            │
│ ↳ provider: gemini                                           │
│ ↳ approval: suggest                                          │
╰──────────────────────────────────────────────────────────────╯
user
in the 10th line in the file .gitignore add .idea

    command

    $ cat .gitignore

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

    # Byte-compiled / optimized / DLL files
    __pycache__/
    *.py[cod]
    *$py.class
    ... (170 more lines)

    command

    $

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

    Failed to parse JSON result

    command

    $

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

    Failed to parse JSON result

    command

    $

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

    Failed to parse JSON result

    command

    $

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

    Failed to parse JSON result

What is the expected behavior?

_No response_

What do you see instead?

_No response_

Additional information

_No response_

View original on GitHub ↗

3 Comments

ai-da-stas · 1 year ago

I have the same problem when using the o4-mini model. I had to roll back to the code version v0.1.2504161551, where everything works.

Rishang · 1 year ago

+1

codex-maintainers · 1 year ago

Thank you for the feedback! Please try using the latest version of Codex CLI. If the issue persists, we'd be happy to take a look at a report on the codex-rs/ implementation. You can find more details on our project update here: https://github.com/openai/codex/discussions/1174.