Summary
After a fresh official Codex install flow, the generated session-start hook fails immediately because _memoryFiltering.js is required but not copied into .codex/hooks/.
Environment
- OS: Windows
- Host: Codex
- package:
@evomap/evolver@1.87.0
- install path: global npm install
What I did
npm uninstall -g @evomap/evolver
npm cache clean --force
npm install -g @evomap/evolver@1.87.0 --prefer-online --no-audit
- In a fresh git repo, ran:
evolver setup-hooks --platform=codex
- Ran the generated hook directly:
node .codex/hooks/evolver-session-start.js
Actual behavior
It fails with:
Error: Cannot find module './_memoryFiltering'
Why this happens
The generated evolver-session-start.js contains:
const { filterRelevantOutcomes } = require('./_memoryFiltering');
but setup-hooks --platform=codex only copied these files into .codex/hooks/ in my fresh install:
_runtimePaths.js
evolver-session-start.js
evolver-signal-detect.js
evolver-session-end.js
So the default generated hook cannot run successfully.
Expected behavior
Either:
_memoryFiltering.js should also be copied alongside the generated hooks, or
evolver-session-start.js should not require a local helper file that is not installed with the hook set.
Notes
This was reproduced on a clean official-path setup without local source patching or manual file injection.
Summary
After a fresh official Codex install flow, the generated
session-starthook fails immediately because_memoryFiltering.jsis required but not copied into.codex/hooks/.Environment
@evomap/evolver@1.87.0What I did
npm uninstall -g @evomap/evolvernpm cache clean --forcenpm install -g @evomap/evolver@1.87.0 --prefer-online --no-auditActual behavior
It fails with:
Why this happens
The generated
evolver-session-start.jscontains:but
setup-hooks --platform=codexonly copied these files into.codex/hooks/in my fresh install:_runtimePaths.jsevolver-session-start.jsevolver-signal-detect.jsevolver-session-end.jsSo the default generated hook cannot run successfully.
Expected behavior
Either:
_memoryFiltering.jsshould also be copied alongside the generated hooks, orevolver-session-start.jsshould not require a local helper file that is not installed with the hook set.Notes
This was reproduced on a clean official-path setup without local source patching or manual file injection.