Skip to content

Bug: resume + local_image starts a new session #10708

@cryptonerdcn

Description

@cryptonerdcn

Summary

When resumeThread() is used with local_image, the SDK emits CLI args with --image before resume <threadId>. The CLI interprets resume/UUID as image paths, so it starts a new session instead of resuming.

Reproduction Repo

https://github.com/cryptonerdcn/codex-resume-local-image-repro

Bug Report

cryptonerdcn/codex-resume-local-image-repro#1

Expected

Args order: resume <threadId> appears before --image and the thread id stays the same.

Actual

Args order: --image appears before resume, and the thread id changes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingsdkIssues related to the Codex SDK

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions