Filtering `codex resume` sessions if inside trusted repository

Resolved 💬 3 comments Opened Nov 16, 2025 by lionelchg Closed Jan 17, 2026
💡 Likely answer: A maintainer (lionelchg, contributor) responded on this thread — see the highlighted reply below.

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_

View original on GitHub ↗

3 Comments

lionelchg contributor · 9 months ago

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

github-actions[bot] contributor · 9 months ago

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

  • #5110

Powered by Codex Action

etraut-openai contributor · 7 months ago

codex resume now filters based on cwd.