Skip to content

[FR] Add Codex default session-mode config #404

@robjgray

Description

@robjgray

Checklist

  • I agree to communicate with the author myself (not AI-generated).
  • I've read the README's Filing issues section.
  • I'm running the latest versions (fill in below).
    • agent-shell: 0.48.1
    • acp.el: 0.11.2
    • ACP package (e.g. claude-code-acp): 0.10.0
    • Agent CLI (e.g. claude, gemini): codex-cli 0.114.0
  • For requesting new agent support, I'm including a link to the ACP-capable agent or related ACP package.
  • For issues, I'm including ACP traffic (as per README).

Add Codex default session mode

Codex does not currently expose a provider-specific default session mode variable in line with:

  • agent-shell-anthropic-default-session-mode-id
  • agent-shell-github-default-session-mode-id
  • agent-shell-opencode-default-session-mode-id

Would you be open to adding a Codex equivalent and wiring it into agent-shell-openai-make-codex-config via :default-session-mode-id?

From my research, codex-acp has these session modes/presets:

  • read-only
  • auto
  • full-access

agent-shell already has generic support for :default-session-mode-id and this would let packages and user configs select a default Codex session mode at startup without requiring a custom wrapper or post-start mode switching.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions