Codex on Windows runs each hook command through the native command interpreter, not a POSIX shell. The .codex/hooks.json commands were POSIX only (sh, python3, 2>/dev/null, $HOME, trailing || true), so python3 hit the Microsoft Store alias, the redirection was an invalid path, and the || true success guard failed because true is not a Windows command. Every hook exited non-zero and Codex reported "hook exited with code 1". Add a per-hook commandWindows override, the sanctioned Codex mechanism. The POSIX command is untouched, so macOS and Linux are byte for byte unchanged. On Windows all seven hooks route through a new launcher, .codex/hooks/pwf-hook.cmd, which picks a real Python (py -3, falling back to python, never the Store python3 alias) and always exits 0. The three shell hooks route through a new front door, .codex/hooks/run_sh.py. codex_hook_adapter.run_shell_script resolves the Git for Windows sh.exe by anchoring on git.exe and the standard install roots, so the shell scripts run even when Git's usr\bin is off PATH, and hands session-catchup.py a real interpreter via PYTHON_BIN. docs/codex.md Windows section rewritten. Version bump 3.4.0 to 3.4.1 across the 17-file parity set. New tests: a cross-platform guard that every hook declares a commandWindows free of the POSIX tokens that break on Windows, and a Windows-only run_sh.py end-to-end test. Reported by @mahdiit.
24 lines
796 B
YAML
24 lines
796 B
YAML
cff-version: 1.2.0
|
|
message: "If you use this software, please cite it using the metadata below."
|
|
type: software
|
|
title: "planning-with-files"
|
|
abstract: "Claude Code skill implementing Manus-style persistent markdown planning — the workflow pattern behind the $2B acquisition. Enables AI agents to plan, track progress, and resume work across sessions using structured markdown files."
|
|
authors:
|
|
- family-names: Adi
|
|
given-names: Ahmad Othman Ammar
|
|
alias: OthmanAdi
|
|
version: "3.4.1"
|
|
date-released: "2026-06-16"
|
|
license: MIT
|
|
url: "https://github.com/OthmanAdi/planning-with-files"
|
|
repository-code: "https://github.com/OthmanAdi/planning-with-files"
|
|
keywords:
|
|
- claude-code
|
|
- agent-skill
|
|
- planning
|
|
- task-management
|
|
- manus-style
|
|
- autonomous-agents
|
|
- markdown
|
|
- ai-agents
|