Skip to content

codex: expose enable_state_persistence for agentapi state persistence #783

@mafredri

Description

@mafredri

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

Metadata

Metadata

Assignees

Labels

No fields configured for Feature.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions