Bug: resume + local_image starts a new session

Resolved 💬 1 comment Opened Feb 5, 2026 by cryptonerdcn Closed Feb 5, 2026

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

https://github.com/cryptonerdcn/codex-resume-local-image-repro/issues/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.

View original on GitHub ↗

This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗