You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Feature Request: resume the latest session in the current directory (follow-up to #4342) #4545
I’m requesting a way to resume the most recent Codex session scoped to the current directory/workspace, not the global last session.
In #4342, I was advised to use codex resume --last, but that resumes the global latest session across all directories on the machine. The desired behavior is to resume the latest session for the current directory/workspace only.
Any of the following would work:
New subcommand: codex continue → resume the most recent session whose session’s workspace equals the current directory
New flag: codex resume --last-in-dir or codex resume --continue
Yes. Once the preferred UX (new subcommand vs flag) is confirmed, I’ll open a PR.
Additional information
This is a follow-up to #4342 to clarify scope: the request is directory/workspace-scoped resume. Why this helps: when working across multiple repos, --last often resumes an unrelated repo’s session; users expect a directory-scoped resume invoked from a folder to continue that folder’s work.
If no matching session exists for the current directory, a friendly message is sufficient (e.g., suggest listing sessions in this directory or starting a new one).
@dedrisian-oai@nornagon-openai Following up after ~2 weeks for a maintainer decision on the dir-scoped resume proposal above. This would streamline session persistence without re-setup overhead in multi-repo workflows. Ask: decision(approve or decline) and preferred UX? If aligned, I'll submit a PR. Thanks!
Activity
williamhrs commentedon Oct 10, 2025
New subcommand: codex continue → resume the most recent session whose session’s workspace equals the current directory
this would be awesome
Nhahan commentedon Oct 14, 2025
@dedrisian-oai @nornagon-openai Following up after ~2 weeks for a maintainer decision on the dir-scoped resume proposal above. This would streamline session persistence without re-setup overhead in multi-repo workflows.
Ask: decision(approve or decline) and preferred UX? If aligned, I'll submit a PR. Thanks!
etraut-openai commentedon Nov 14, 2025
Closing in favor of #3856, which has more upvotes.