Problem
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.
Version bump
patch
Refs #740
Refs coder/internal#1258
Problem
The codex module doesn't expose
enable_state_persistenceor pass it through to themodule "agentapi"block. Without this, the Coder UI won't preserve chat history across workspace restarts even though the agent itself resumes its session viaresume <SESSION_ID>.The
--type codexgap was fixed in #781. This ticket covers the remaining state persistence work.Desired outcome
Expose
enable_state_persistenceinmain.tf(defaulttrue) and pass it through to themodule "agentapi"block so the Coder UI preserves chat history across restarts, matching the agent's resumed session.Version bump
patchRefs #740
Refs coder/internal#1258