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
- Configure a SessionStart hook on Windows.
- Start a Codex session.
- Confirm that the hook runs when the session initially starts.
- Run compact during the session.
- Wait for compaction to complete.
- Check the hook logs or output.
What is the expected behavior?
_No response_
Additional information
_No response_