Skip to content

Fix Windows running thread resume path normalization#25509

Merged
etraut-openai merged 1 commit into
mainfrom
etraut/windows-resume-path-normalization
Jun 2, 2026
Merged

Fix Windows running thread resume path normalization#25509
etraut-openai merged 1 commit into
mainfrom
etraut/windows-resume-path-normalization

Conversation

@etraut-openai
Copy link
Copy Markdown
Collaborator

Why

Fixes #24944.

On Windows, app-server resume could reject an active running thread when the requested session path used normal C:\... form and the already-running path used verbatim \\?\C:\... form. The paths point at the same JSONL file, but the resume stale-path guard compared raw PathBufs, so desktop resume and heartbeat flows could fail with a mismatched-path error.

What Changed

  • Compare requested and active rollout paths with path_utils::paths_match_after_normalization.
  • Extend the existing running-thread mismatched-path test with a Windows-only same-file resume case before the stale-path rejection.

Verification

  • just test -p codex-app-server thread_resume_rejects_mismatched_path_for_running_thread_id

@etraut-openai etraut-openai force-pushed the etraut/windows-resume-path-normalization branch from d19ca44 to 231e4b8 Compare June 1, 2026 05:05
@chatgpt-codex-connector
Copy link
Copy Markdown
Contributor

Codex Review: Didn't find any major issues. 🎉

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

@MisterRound

This comment was marked as off-topic.

@etraut-openai etraut-openai merged commit ad355d4 into main Jun 2, 2026
31 checks passed
@etraut-openai etraut-openai deleted the etraut/windows-resume-path-normalization branch June 2, 2026 19:42
@github-actions github-actions Bot locked and limited conversation to collaborators Jun 2, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Codex cannot resume running thread when Windows session path differs only by \\?\ prefix

3 participants