Filtering `codex resume` sessions if inside trusted repository

Resolved 💬 3 comments Opened Nov 16, 2025 by lionelchg Closed Jan 17, 2026

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 ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗