Skip to content

codex: add --type codex to agentapi server #740

Description

@mafredri

Problem

The start_codex() function in start.sh launches agentapi server without --type, so agentapi uses generic terminal output parsing instead of codex-specific status detection.

The module otherwise has full resume support (session tracking, resume <SESSION_ID> subcommand, prompt skipping, continue = true default). This is the only gap.

To verify: inspect the agentapi process args after module startup. --type will be absent.

Desired outcome

  • --type codex is passed to agentapi server.
  • 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 #696, coder/internal#1258

Activity

added theissue type on Feb 23, 2026

matifali commented on Mar 2, 2026

@matifali
Member

@35C4n0r can you take this on?

added a commit that references this issue on Mar 3, 2026
e3abbb9

mafredri commented on Mar 3, 2026

@mafredri
MemberAuthor

The --type codex fix shipped in #781. The enable_state_persistence pass-through was intended to be part of this ticket but not mentioned. Follow-up: #783

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions