Skip to content

[BUG] openai/gpt-5.2-codex Error message: JSON Parse error: Unterminated string errors #10755

Closed as not planned

Description

@thesammykins

Description

During session the agent would output a lengthy error ending with Error message: JSON Parse error: Unterminated string

From share link, this item has the entire error message. Also attached the session.json to issue.

Image

session.json

Plugins

No response

OpenCode version

1.1.36

Steps to reproduce

  1. Use opencode
  2. Have openai/gpt-5.2-codex as your model
  3. Use normally to plan+build
  4. Randomly dumping the Error message: JSON Parse error: Unterminated string into the conversation
  5. Say "continue" and agent picks back up
  6. Error may occur again

Screenshot and/or share link

Image

https://opncd.ai/share/JtdU1xX3

Operating System

macOS 26.3

Terminal

Warp

Activity

  1. github-actions commented on Jan 27, 2026

    @github-actions
    Contributor

    This issue might be a duplicate of existing issues. Please check:

    These issues all involve JSON parsing errors during model execution. Feel free to ignore if this specific case with gpt-5.2-codex is different.

  2. LeoNardo-LB commented on Feb 4, 2026

    @LeoNardo-LB

    Same issue

  3. R44VC0RP commented on Feb 4, 2026

    @R44VC0RP
    Contributor

    hey @thesammykins can you run opencode export > session.json on the session where you encountered that issue?

  4. thesammykins commented on Feb 4, 2026

    @thesammykins
    Author

    hey @R44VC0RP the session.json for the session is linked in my original comment :)

    https://github.com/user-attachments/files/24871021/session.json

  5. josh-burton commented on Mar 19, 2026

    @josh-burton

    Running into this constantly.

  6. LyndseyPaxton commented on Mar 24, 2026

    @LyndseyPaxton

    I to am seeing this a lot (multiple times a day) running GPT-5.3 Codex. Not sure what additional info I can provide to help you guys diagnose this.

  7. removed
    bugSomething isn't working
    on May 3, 2026
  8. github-actions commented on Jul 6, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions