Skip to content

Conversation

tibo-openai
Copy link
Collaborator

@tibo-openai tibo-openai commented Oct 18, 2025

Walk the sessions tree instead of using file_search so gitignored CODEX_HOME directories can resume sessions. Add a regression test that covers a .gitignore'd sessions directory.

Fixes #5247
Fixes #5412

@tibo-openai tibo-openai changed the title Fix resume lookup for gitignored CODEX_HOME fix: resume lookup for gitignored CODEX_HOME Oct 18, 2025
@tibo-openai tibo-openai force-pushed the tibo/resume-codex-home branch from a4cf9f5 to 4b569f5 Compare October 18, 2025 03:35
@tibo-openai tibo-openai marked this pull request as ready for review October 22, 2025 02:54
.into_iter()
.next()
.map(|m| root.join(m.path)))
let codex_home = codex_home.to_path_buf();
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we use something like walkdir instead of rolling our own dir walking logic?

let codex_home = codex_home.to_path_buf();
let id = id_str.to_owned();

spawn_blocking(move || {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why spawn?

Copy link
Collaborator

@pakrym-oai pakrym-oai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm getting a bit uncomfortable with how many file walker implementations we have.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Cannot resume sessions when setting variable commands like "codex resume session-id" do not respect CODEX_HOME

2 participants