Skip to content

Filtering codex resume sessions if inside trusted repository #6730

Closed

Description

@lionelchg

What feature would you like to see?

When I am using Codex CLI 0.58.0 across multiple repositories and I want to resume a session in a particular repository I see all Codex sessions across all repositories when using codex resume. If I am inside a trusted repository i.e. one that has inside $CODEX_HOME/config.toml:

[projects."/Users/username/trusted-repo"]
trust_level = "trusted"

I would like to see only the sessions attached to this repository so that it's easier for me to resume my work on a particular workspace.

Currently that could be done by creating a different CODEX_HOME inside each repository so that there is only one $CODEX_HOME/sessions directory per repository but that would mean duplicating configs and injecting the CODEX_HOME variable every time. Filtering would allow to work more seamlessly across multiple repositories.

By looking at the code each sessions/rollout-{timestamp}-{convid}.jsonl has a first line session_meta type which holds a cwd property that would allow such filtering.

Additional information

No response

Activity

  1. lionelchg commented on Nov 16, 2025

    @lionelchg
    ContributorAuthor

    Happy to hear your thoughts on this one @aibrahim-oai are you are the one that implemented the codex resume feature :)

  2. github-actions commented on Nov 16, 2025

    @github-actions
    Contributor

    Potential duplicates detected. Please review them and close your issue if it is a duplicate.

    Powered by Codex Action

  3. etraut-openai commented on Jan 17, 2026

    @etraut-openai
    Contributor

    codex resume now filters based on cwd.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    CLIIssues related to the Codex CLIenhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions