Skip to content

There is no help information regarding the options "--continue" and "--resume" in the "codex --help" command #3309

Closed

Description

@WSL0809

What version of Codex is running?

codex-cli 0.30.0

Which model were you using?

gpt-5

What platform is your computer?

Linux 5.14.0-427.13.1.el9_4.x86_64 x86_64 x86_64

What steps can reproduce the bug?

run "codex --help"

What is the expected behavior?

Options:
-c, --continue Continue the most recent conversation
-r, --resume Resume a conversation select a conversation to resume

What do you see instead?

There is no information regarding "resume" and "continue" in the help section.

codex --help
Codex CLI

If no subcommand is specified, options will be forwarded to the interactive CLI.

Usage: codex [OPTIONS] [PROMPT]
codex [OPTIONS] [PROMPT]

Commands:
exec Run Codex non-interactively [aliases: e]
login Manage login
logout Remove stored authentication credentials
mcp Experimental: run Codex as an MCP server
proto Run the Protocol stream via stdin/stdout [aliases: p]
completion Generate shell completion scripts
debug Internal debugging commands
apply Apply the latest diff produced by Codex agent as a git apply to your local working tree [aliases: a]
help Print this message or the help of the given subcommand(s)

Arguments:
[PROMPT]
Optional user prompt to start the session

Options:
-c, --config <key=value>
Override a configuration value that would otherwise be loaded from ~/.codex/config.toml. Use a dotted path (foo.bar.baz) to override nested values. The value portion is parsed as JSON. If it fails to parse
as JSON, the raw string is used as a literal.

      Examples: - `-c model="o3"` - `-c 'sandbox_permissions=["disk-full-read-access"]'` - `-c shell_environment_policy.inherit=all`

-i, --image ...
Optional image(s) to attach to the initial prompt

-m, --model
Model the agent should use

  --oss
      Convenience flag to select the local open source model provider. Equivalent to -c model_provider=oss; verifies a local Ollama server is running

-p, --profile <CONFIG_PROFILE>
Configuration profile from config.toml to specify default options

-s, --sandbox <SANDBOX_MODE>
Select the sandbox policy to use when executing model-generated shell commands

      [possible values: read-only, workspace-write, danger-full-access]

-a, --ask-for-approval <APPROVAL_POLICY>
Configure when the model requires human approval before executing a command

      Possible values:
      - untrusted:  Only run "trusted" commands (e.g. ls, cat, sed) without asking for user approval. Will escalate to the user if the model proposes a command that is not in the "trusted" set
      - on-failure: Run all commands without asking for user approval. Only asks for approval if a command fails to execute, in which case it will escalate to the user to ask for un-sandboxed execution
      - on-request: The model decides when to ask the user for approval
      - never:      Never ask for user approval Execution failures are immediately returned to the model

  --full-auto
      Convenience alias for low-friction sandboxed automatic execution (-a on-failure, --sandbox workspace-write)

  --dangerously-bypass-approvals-and-sandbox
      Skip all confirmation prompts and execute commands without sandboxing. EXTREMELY DANGEROUS. Intended solely for running in environments that are externally sandboxed

-C, --cd


Tell the agent to use the specified directory as its working root

  --search
      Enable web search (off by default). When enabled, the native Responses `web_search` tool is available to the model (no per‑call approval)

-h, --help
Print help (see a summary with '-h')

-V, --version
Print version

Additional information

No response

Activity

  1. pakrym-oai commented on Sep 8, 2025

    @pakrym-oai
    Contributor

    My apologies, the feature is still in development and shipped by accident, we'll add docs in the next release.

  2. YasinHossain commented on Sep 8, 2025

    @YasinHossain

    just wondering is there a clear context option like claude code? Right now I have to quiet the chat and call the codex again to clear the context.

  3. aibrahim-oai commented on Sep 8, 2025

    @aibrahim-oai
    Contributor

    @YasinHossain you can do /compact.

  4. YasinHossain commented on Sep 8, 2025

    @YasinHossain

    @aibrahim-oai sometimes I just want a new chat without any context. Context are irrelevant for that new chat and don't want to confuse the AI with irrelevant context. And extra token usage of compacting. So just clearing context is easier then opening a new chat by calling codex.

  5. alpharover commented on Sep 8, 2025

    @alpharover

    @aibrahim-oai sometimes I just want a new chat without any context. Context are irrelevant for that new chat and don't want to confuse the AI with irrelevant context. And extra token usage of compacting. So just clearing context is easier then opening a new chat by calling codex.

    does '/new' not work for your use case?

  6. 0xdevalias commented on Oct 7, 2025

    @0xdevalias

    This issue is outdated and can probably be closed:

    ⇒ codex --version
    codex-cli 0.45.0
    ⇒ codex --help
    Codex CLI
    
    If no subcommand is specified, options will be forwarded to the interactive CLI.
    
    Usage: codex [OPTIONS] [PROMPT]
           codex [OPTIONS] [PROMPT] <COMMAND>
    
    Commands:
      ..snip..
      resume      Resume a previous interactive session (picker by default; use --last to continue the most recent)
    ..snip..
    ⇒ codex resume --help
    Resume a previous interactive session (picker by default; use --last to continue the most recent)
    
    Usage: codex resume [OPTIONS] [SESSION_ID] [PROMPT]
    
    Arguments:
      [SESSION_ID]
              Conversation/session id (UUID). When provided, resumes this session. If omitted, use --last to pick the most
              recent recorded session
    
      [PROMPT]
              Optional user prompt to start the session
    
    ..snip..
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions