Bug
Code written by Windsurf Cascade is appearing in the ledger attributed to the git user (human) rather than windsurf.
Expected:
{"agent": "windsurf", "model": "claude-3-7-sonnet-20250219", ...}
Actual:
{"agent": "Prakhar Khatri", "model": null, ...}
Root cause (suspected):
The post_cascade_response_with_transcript or post_write_code hooks in ~/.codeium/windsurf/hooks.json may not be firing correctly, or the session transcript format changed in a recent Windsurf version.
Debugging steps:
- After a Windsurf edit, check
~/.agentdiff/logs/windsurf-hook-fired.log
- If empty → hook is not firing. Re-run
agentdiff init and verify ~/.codeium/windsurf/hooks.json has the correct hook entries
- If the log has entries → inspect payload shape for
model and writes fields
Also: Windsurf does not currently surface which underlying model was used (e.g. Claude Sonnet vs GPT-4o). If Windsurf exposes this in the transcript, we should capture and store it.
Environment:
- agentdiff v0.1.16
- Windsurf (latest)
Bug
Code written by Windsurf Cascade is appearing in the ledger attributed to the git user (human) rather than
windsurf.Expected:
{"agent": "windsurf", "model": "claude-3-7-sonnet-20250219", ...}Actual:
{"agent": "Prakhar Khatri", "model": null, ...}Root cause (suspected):
The
post_cascade_response_with_transcriptorpost_write_codehooks in~/.codeium/windsurf/hooks.jsonmay not be firing correctly, or the session transcript format changed in a recent Windsurf version.Debugging steps:
~/.agentdiff/logs/windsurf-hook-fired.logagentdiff initand verify~/.codeium/windsurf/hooks.jsonhas the correct hook entriesmodelandwritesfieldsAlso: Windsurf does not currently surface which underlying model was used (e.g. Claude Sonnet vs GPT-4o). If Windsurf exposes this in the transcript, we should capture and store it.
Environment: