Keep getting "Item with id 'rs_xxxxx' not found. Items are not persisted when 'store' is set to false" and out of context #4687

Closed
opened 2026-02-16 17:45:02 -05:00 by yindo · 12 comments
Owner

Originally created by @avesed on GitHub (Jan 10, 2026).

Originally assigned to: @rekram1-node on GitHub.

Description

Keep getting 2 errors when using GPT models. Both login (OpenAI Plus) or using api (from reverse CLI).

  1. "Item with id 'rs_xxxxx' not found. Items are not persisted when 'store' is set to false."
  2. out of context

Plugins

none

OpenCode version

1.1.12

Steps to reproduce

  1. Use gpt-5.2-codex
  2. Normal use, after some work
  3. error shows

Screenshot and/or share link

Image Image

Operating System

Ubuntu 24.04 LTS

Terminal

opencode windows

Originally created by @avesed on GitHub (Jan 10, 2026). Originally assigned to: @rekram1-node on GitHub. ### Description Keep getting 2 errors when using GPT models. Both login (OpenAI Plus) or using api (from reverse CLI). 1. "Item with id 'rs_xxxxx' not found. Items are not persisted when 'store' is set to false." 2. out of context ### Plugins none ### OpenCode version 1.1.12 ### Steps to reproduce 1. Use gpt-5.2-codex 2. Normal use, after some work 3. error shows ### Screenshot and/or share link <img width="566" height="76" alt="Image" src="https://github.com/user-attachments/assets/1f9b51e2-05a3-4cfb-9f73-01084e61b50f" /> <img width="591" height="131" alt="Image" src="https://github.com/user-attachments/assets/e4d30ba6-9a42-4c7e-a149-142a8a16c36e" /> ### Operating System Ubuntu 24.04 LTS ### Terminal opencode windows
yindo added the bug label 2026-02-16 17:45:02 -05:00
yindo closed this issue 2026-02-16 17:45:02 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Jan 10, 2026):

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

  • #4426: GPT-5.1-codex OpenAI item with id not found error - Same exact error message
  • #3118: @ai-sdk/openai 2.0.50 breaks OpenAI OAuth plugin requiring store: false - Root cause analysis and workaround for the "Items are not persisted when 'store' is set to false" error
  • #7699: Switching between ChatGPT Codex to OpenAI API results in errors - Similar error when switching between OpenAI models
  • #7637: Desktop app store data not persisting - Related store persistence issue

Feel free to ignore if none of these address your specific case.

@github-actions[bot] commented on GitHub (Jan 10, 2026): This issue might be a duplicate of existing issues. Please check: - #4426: GPT-5.1-codex OpenAI item with id not found error - Same exact error message - #3118: @ai-sdk/openai 2.0.50 breaks OpenAI OAuth plugin requiring store: false - Root cause analysis and workaround for the "Items are not persisted when 'store' is set to false" error - #7699: Switching between ChatGPT Codex to OpenAI API results in errors - Similar error when switching between OpenAI models - #7637: Desktop app store data not persisting - Related store persistence issue Feel free to ignore if none of these address your specific case.
Author
Owner

@avesed commented on GitHub (Jan 10, 2026):

Adding

"store": false

fixes the first issue, but it is still hitting the context limit. I have to manually do /compact to continue.

@avesed commented on GitHub (Jan 10, 2026): Adding ``` "store": false ``` fixes the first issue, but it is still hitting the context limit. I have to manually do /compact to continue.
Author
Owner

@rekram1-node commented on GitHub (Jan 10, 2026):

@avesed can u do opencode export > session.json (this is a command to run in ur terminal and will output the session.json file) can u send me a file of a session that this happened in?

@rekram1-node commented on GitHub (Jan 10, 2026): @avesed can u do `opencode export > session.json` (this is a command to run in ur terminal and will output the session.json file) can u send me a file of a session that this happened in?
Author
Owner

@avesed commented on GitHub (Jan 11, 2026):

@avesed can u do opencode export > session.json (this is a command to run in ur terminal and will output the session.json file) can u send me a file of a session that this happened in?

I upgraded to 1.1.13, so far (about an hour of use), haven't got any error. But on the other hand, after setting "store": false, it kinda burn though tokens, used about 20M tokens in 40min, in my normal workflow (which don't use this much).

@avesed commented on GitHub (Jan 11, 2026): > [@avesed](https://github.com/avesed) can u do `opencode export > session.json` (this is a command to run in ur terminal and will output the session.json file) can u send me a file of a session that this happened in? I upgraded to 1.1.13, so far (about an hour of use), haven't got any error. But on the other hand, after setting `"store": false`, it kinda burn though tokens, used about 20M tokens in 40min, in my normal workflow (which don't use this much).
Author
Owner

@280601922 commented on GitHub (Jan 12, 2026):

@avesed can u do opencode export > session.json (this is a command to run in ur terminal and will output the session.json file) can u send me a file of a session that this happened in?你能做 opencode export > session.json (这是一个在您的终端中运行的命令,并将输出 session.json 文件)你能发给我一个发生这种情况的会话文件吗?多模型翻译对比

I've encountered this issue as well. The attachment shows the problematic session using the gpt-5.2-codex model. I set store:false, but it didn't resolve the problem.

Image

session.json

@280601922 commented on GitHub (Jan 12, 2026): > [@avesed](https://github.com/avesed) can u do `opencode export > session.json` (this is a command to run in ur terminal and will output the session.json file) can u send me a file of a session that this happened in?你能做 `opencode export > session.json` (这是一个在您的终端中运行的命令,并将输出 session.json 文件)你能发给我一个发生这种情况的会话文件吗?多模型翻译对比![](data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAAAXNSR0IArs4c6QAADR5JREFUeF7tnc153DgMhqWtIK5o7Vuy/fjs+Ox+ktziVJRUEO0jjTTWaEiRBAHwB58vOYSkiA94BYKSOOOAPygABbwKjNAGCkABvwIABNEBBU4UACAIDygAQBADUICmADIITTf0MqIAADHiaJhJUwCA0HRDLyMKABAjjoaZNAUACE039DKiAAAx4miYSVMAgNB0Qy8jCgAQI46GmTQFAAhNN/QyogAAMeJomElTAIDQdEMvIwoAECOOhpk0BQAITTf0MqIAADHiaJhJUwCA0HRDLyMKABAjjoaZNAUACE039DKiAAAx4miYSVMAgNB0Qy8jCgAQI46GmTQFAAhNN/QyogAAMeJomElTAIDQdEMvIwoAECOOhpk0BQAITbeoXm+ffz8O4/iyNB6nX/M/z98evkZ1Zmh0vf44/XJd9+2/31+HaXwZpunp+cfDO8MluxsCgAi59O3Ln5/DMDzeDT9Or1qQrIDM85gBvbnufn7P3z8hDjxxAGEEALnemX1ja0JyBHWcXpessf0pzkVAavEhAYiAxG9f/kzBYZUC8yaLuCalNI+gHpU2ACACjokCxLHsEZjKEAIEy6tz1QGIQFRGA6IASQiQY20iIEfTQwIQAfd5C3TlmiRYC+3ng6WW0zsApAZABDJJEhwfGrw/f//0JCBJs0MCEAHXEYPzbiuWOjXPsmp+znHcdv549lHgOQ3VPs1+AERA7eC6/+yagkudm9pI8DoCkhYbEoAISJ8FiMByazPxpjZSAuT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l6LAI4Ow7ScSUUAEVtqoSgvF0mdXrkcINzbvoCj0xAta1YxQJYssn3BNgyPWTIAjiz50NmvQFFAtmllfSMCOBDfggpUAciSTWi7W9jOFQwODD0M1QCSnE2QORC/CgpUB8i1NvlneBw8P/sVc+qGgna4hAEFqgRkr/tSyA/DEDqGxoCvYGIBBaoHpIAmuCQUuCoAQBAMUOBEAQCC8IACAAQxAAVoCiCD0HRDLyMKABAjjoaZNAUACE039DKiAAAx4miYSVMAgNB0Qy8jCgAQI46GmTQFAAhNN/QyogAAMeJomElTAIDQdEMvIwoAECOOhpk0BQAITTf0MqIAADHiaJhJUwCA0HRDLyMKABAjjoaZNAUACE039DKiAAAx4miYSVMAgNB0Qy8jCgAQI46GmTQFAAhNN/QyogAAMeJomElTAIDQdEMvIwoAECOOhpk0BQAITTf0MqIAADHiaJhJU+B/iYh1IwbW2RYAAAAASUVORK5CYII=) I've encountered this issue as well. The attachment shows the problematic session using the gpt-5.2-codex model. I set `store:false`, but it didn't resolve the problem. <img width="1492" height="406" alt="Image" src="https://github.com/user-attachments/assets/dd1ed097-237a-494e-af28-f9408e7a2d70" /> [session.json](https://github.com/user-attachments/files/24560603/session.json)
Author
Owner

@avesed commented on GitHub (Jan 12, 2026):

@280601922 我的格式是这样的,加limit是因为有时候我会触发issue里的第2个报错,改完之后我确实不会有报错了,但是token用的非常快(尤其如果你用的是反代,直接登录还好一点),建议小心使用

{
  "$schema": "https://opencode.ai/config.json",
  "provider": {
    "openai": {
      "options": {
        "baseURL": "",
        "apiKey": ""
      },
      "models": {
        "gpt-5.2-codex": {
          "options": {
            "store": false,
            "reasoningEffort": "xhigh",
            "textVerbosity": "medium",
            "reasoningSummary": "auto",
            "include": ["reasoning.encrypted_content"],
            "limit": {
            "context": 250000,
            "output": 65000
            }
          }
        }
      }
    }
  }
}
@avesed commented on GitHub (Jan 12, 2026): @280601922 我的格式是这样的,加limit是因为有时候我会触发issue里的第2个报错,改完之后我确实不会有报错了,但是token用的非常快(尤其如果你用的是反代,直接登录还好一点),建议小心使用 ``` { "$schema": "https://opencode.ai/config.json", "provider": { "openai": { "options": { "baseURL": "", "apiKey": "" }, "models": { "gpt-5.2-codex": { "options": { "store": false, "reasoningEffort": "xhigh", "textVerbosity": "medium", "reasoningSummary": "auto", "include": ["reasoning.encrypted_content"], "limit": { "context": 250000, "output": 65000 } } } } } } } ```
Author
Owner

@280601922 commented on GitHub (Jan 12, 2026):

@280601922 我的格式是这样的,加limit是因为有时候我会触发issue里的第2个报错,改完之后我确实不会有报错了,但是token用的非常快(尤其如果你用的是反代,直接登录还好一点),建议小心使用

{
  "$schema": "https://opencode.ai/config.json",
  "provider": {
    "openai": {
      "options": {
        "baseURL": "",
        "apiKey": ""
      },
      "models": {
        "gpt-5.2-codex": {
          "options": {
            "store": false,
            "reasoningEffort": "xhigh",
            "textVerbosity": "medium",
            "reasoningSummary": "auto",
            "include": ["reasoning.encrypted_content"],
            "limit": {
            "context": 250000,
            "output": 65000
            }
          }
        }
      }
    }
  }
}

感谢, 我的opencode.json里的配置跟你的不太一样(有个variants的参数,我理解,是不是options参数是针对用的具体推理级别,额外要指定下? 另外我使用了oh-my-opencode不知道跟这个插件有没有关系

Image
@280601922 commented on GitHub (Jan 12, 2026): > [@280601922](https://github.com/280601922) 我的格式是这样的,加limit是因为有时候我会触发issue里的第2个报错,改完之后我确实不会有报错了,但是token用的非常快(尤其如果你用的是反代,直接登录还好一点),建议小心使用 > > ``` > { > "$schema": "https://opencode.ai/config.json", > "provider": { > "openai": { > "options": { > "baseURL": "", > "apiKey": "" > }, > "models": { > "gpt-5.2-codex": { > "options": { > "store": false, > "reasoningEffort": "xhigh", > "textVerbosity": "medium", > "reasoningSummary": "auto", > "include": ["reasoning.encrypted_content"], > "limit": { > "context": 250000, > "output": 65000 > } > } > } > } > } > } > } > ``` 感谢, 我的opencode.json里的配置跟你的不太一样(有个variants的参数,我理解,是不是options参数是针对用的具体推理级别,额外要指定下? 另外我使用了`oh-my-opencode`不知道跟这个插件有没有关系 <img width="1149" height="549" alt="Image" src="https://github.com/user-attachments/assets/bea7ddf8-bb74-4fea-90e3-eb00df68cba2" />
Author
Owner

@avesed commented on GitHub (Jan 12, 2026):

@280601922 这个我不太确定,因为我的opencode没有自己生成opencode.json,我是自己按doc写的~/.config/opencode/opencode.json

@avesed commented on GitHub (Jan 12, 2026): @280601922 这个我不太确定,因为我的opencode没有自己生成opencode.json,我是自己按doc写的`~/.config/opencode/opencode.json`
Author
Owner

@arjun810 commented on GitHub (Jan 13, 2026):

Getting this frequently with codex via zen

@arjun810 commented on GitHub (Jan 13, 2026): Getting this frequently with codex via zen
Author
Owner

@PSU3D0 commented on GitHub (Jan 14, 2026):

Getting this issue probably 50% of sessions - usually after 50-60 turns - with 5.2 Codex

@PSU3D0 commented on GitHub (Jan 14, 2026): Getting this issue probably 50% of sessions - usually after 50-60 turns - with 5.2 Codex
Author
Owner

@elijahdev0 commented on GitHub (Jan 14, 2026):

Getting this as well please someone mention if they found a fix

@elijahdev0 commented on GitHub (Jan 14, 2026): Getting this as well please someone mention if they found a fix
Author
Owner

@rekram1-node commented on GitHub (Jan 15, 2026):

Should be fixed in next release.

cc @elijahdev0

@rekram1-node commented on GitHub (Jan 15, 2026): Should be fixed in next release. cc @elijahdev0
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#4687