opencode icon indicating copy to clipboard operation
opencode copied to clipboard

[BUG] Switching between ChatGPT Codex to OpenAI API results in errors

Open Dyaxler opened this issue 4 days ago • 4 comments

Description

I have a ton of old sessions where I used OpenAI API models. When I switched over to ChatGPT Codex, any additional prompts sent in those sessions results in errors such as:

Item with id 'rs_08967cad41a1d1fc0069599e28be1881909a42ea84f1ab24cd' not found. Items are not persisted when `store` is set to false. Try again with `store` set to true, or remove this item from your input.

Additionally, going in the opposite direction (a session with ChatGPT messages --> OpenAI API) results in errors such as these:

Item with id 'rs_03cdea15e4352413016962aeb58374819da5149be98b1a7b1e' not found.

...under the hood I know exactly where this error is coming from. But I'm sure you all might even be aware of it already. Just thought I would point it out.

Plugins

None

OpenCode version

1.1.12

Steps to reproduce

  1. Use OpenCode with OpenAI API
  2. Create a session in OpenCode
  3. Type a few messages
  4. Switch to ChatGPT
  5. Open old session
  6. Type a message

Screenshot and/or share link

No response

Operating System

No response

Terminal

No response

Dyaxler avatar Jan 10 '26 20:01 Dyaxler