What
agentdiff status currently confirms the agentdiff hook marker is present in Codex/Gemini config files, but doesn't verify the required enablement flags:
- Codex:
features.codex_hooks = true
- Gemini:
tools.enableHooks = true
These flags can be disabled by the user or agent updates, causing silent capture failure while status reports "ok".
Why
An engineering team could think capture is running when it's actually broken. The marker check provides ~80% confidence; enablement flags bring it to ~95%.
How
In print_agent_hook_status() in status.rs, after confirming the marker is present for Codex/Gemini:
- For Codex: parse TOML config and verify
features.codex_hooks = true
- For Gemini: parse JSON config and verify
tools.enableHooks = true
- Show a distinct
warn if flag is missing or false, even if marker is present
Effort
~15 min. No dependencies.
What
agentdiff statuscurrently confirms the agentdiff hook marker is present in Codex/Gemini config files, but doesn't verify the required enablement flags:features.codex_hooks = truetools.enableHooks = trueThese flags can be disabled by the user or agent updates, causing silent capture failure while status reports "ok".
Why
An engineering team could think capture is running when it's actually broken. The marker check provides ~80% confidence; enablement flags bring it to ~95%.
How
In
print_agent_hook_status()instatus.rs, after confirming the marker is present for Codex/Gemini:features.codex_hooks = truetools.enableHooks = truewarnif flag is missing or false, even if marker is presentEffort
~15 min. No dependencies.