Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windsurf: Visual diffs break and become inaccessible when renaming files with pending diffs #114

Open
jeffcoughlin opened this issue Jan 8, 2025 · 2 comments

Comments

@jeffcoughlin
Copy link

Description:
When a file that has pending (unaccepted) diffs is renamed, the visual diff display and acceptance functionality breaks for all diffs. The AI conversation and code modification capabilities remain intact, but users lose the ability to see or accept any changes being made.

Steps to Reproduce:

  1. Start a conversation with the AI Assistant
  2. Have the AI propose changes to a file, creating diffs
  3. Before accepting all diffs for that file, rename the file
  4. Try to view or accept any proposed changes

Expected Behavior:

  • Visual diffs should continue to display after renaming a file with pending diffs
  • Users should be able to see and accept proposed changes
  • The diff system should handle file rename operations gracefully

Actual Behavior:

  • Visual diffs disappear and become inaccessible
  • Cannot see what changes the AI is making to files
  • Cannot accept any completed changes
  • The AI continues to function normally and maintains conversation context
  • The AI can continue making code changes, but users cannot see what is being changed
  • The issue affects all diffs, not just those in the renamed file

Technical Details:

  • Only occurs when renaming files that have pending (unaccepted) diffs
  • Renaming other files in the workspace does not trigger the issue
  • Only affects the diff visualization and acceptance system
  • The conversation context and AI functionality remain intact
  • The issue persists across application restarts
  • Seems to be related to how the diff system tracks file paths for pending changes

Impact:

  • Users cannot verify changes before they are made
  • Makes it impossible to review code modifications
  • Forces users to either:
    a) Start a new conversation to regain diff visibility
    b) Blindly trust the AI's changes without visual verification

Environment:

  • Windows OS, Mac OS
  • Latest version of Windsurf IDE
  • Affects all file types and languages
  • To my knowledge, this bug has existed since the first public beta release

Workarounds:

  1. Accept all diffs in a file before renaming it
  2. Start a new conversation after performing rename operations on files with pending diffs
  3. Document intended changes before renaming files

Additional Notes:

  • The issue appears to be specifically with the diff visualization system's handling of file renames
  • The AI's ability to track files and make changes remains functional
  • Only the user's ability to see and accept changes is affected
  • The issue is specifically tied to files that have pending diffs, not all files in the workspace
@jeffcoughlin jeffcoughlin changed the title Visual diffs break and become inaccessible when renaming files with pending diffs Windsurf: Visual diffs break and become inaccessible when renaming files with pending diffs Jan 8, 2025
@alnimra
Copy link

alnimra commented Jan 13, 2025

Running into this same issue.

@njeanselme
Copy link

same issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants