Windows: SessionStart hook is not triggered after Codex completes compact

Open 💬 0 comments Opened Jul 27, 2026 by Zeoy2020

What version of Codex CLI is running?

codex-cli 0.145.0

What subscription do you have?

no

Which model were you using?

_No response_

What platform is your computer?

Microsoft Windows NT 10.0.26100.0 x64

What terminal emulator and version are you using (if applicable)?

_No response_

Codex doctor report

What issue are you seeing?

On Windows, Codex does not trigger the configured SessionStart hook after the compact operation completes.

This prevents initialization logic that depends on the hook from running again, such as refreshing environment variables, regenerating context files, or executing project setup scripts.

What steps can reproduce the bug?

Steps to Reproduce

  1. Configure a SessionStart hook on Windows.
  2. Start a Codex session.
  3. Confirm that the hook runs when the session initially starts.
  4. Run compact during the session.
  5. Wait for compaction to complete.
  6. Check the hook logs or output.

What is the expected behavior?

_No response_

Additional information

_No response_

View original on GitHub ↗