agentdiff
agentdiff copied to clipboard
fix: agentdiff status should verify Codex/Gemini enablement flags
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
warnif flag is missing or false, even if marker is present
Effort
~15 min. No dependencies.
closed by #26