Skip to content

bug: Windsurf changes attributed as human instead of windsurf #4

Description

@codeprakhar25

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:

  1. After a Windsurf edit, check ~/.agentdiff/logs/windsurf-hook-fired.log
  2. If empty → hook is not firing. Re-run agentdiff init and verify ~/.codeium/windsurf/hooks.json has the correct hook entries
  3. 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)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions