Skip to content

Filtering codex resume sessions if inside trusted repository #6730

@lionelchg

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    CLIIssues related to the Codex CLIenhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions