You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
codex: expose enable_state_persistence for agentapi state persistence #783
The codex module doesn't expose enable_state_persistence or pass it through to the module "agentapi" block. Without this, the Coder UI won't preserve chat history across workspace restarts even though the agent itself resumes its session via resume <SESSION_ID>.
The --type codex gap was fixed in #781. This ticket covers the remaining state persistence work.
Desired outcome
Expose enable_state_persistence in main.tf (default true) and pass it through to the module "agentapi" block so the Coder UI preserves chat history across restarts, matching the agent's resumed session.
Activity
35C4n0r commentedon Mar 3, 2026
@mafredri, when you make a PR for this can you include this patch: https://gist.github.com/35C4n0r/75114df2e90a4306cd9f5c2fe3e29a58
It's a documentation detail I missed in #781
mafredri commentedon Mar 3, 2026
@35C4n0r if you have the bandwidth and want to take this ticket on and fix that one at the same time, feel free. Otherwise, got it 👍🏻.
docs(docs/ai-coder): upgrade Codex to full resume support
feat(coder-labs/modules/codex): add support for agentapi state_persis…
docs(docs/ai-coder): upgrade Codex to full resume support (#22594)