I wanted to give Windsurf another opportunity to make an actual code change. This time, I’m adding a new feature to the sso tool to print out the OAuth bearer token. I started with the prompt “Add a new subcommand called token to the sso tool. The token command should print out the current OAuth2 bearer token.”
Windsurf decided to do a larger refactor of the main function, moving more logic into the command dispatch match block. That change would have broken the automatic token refresh before running the curl command. I manually reverted those changes and then told it “I reverted part of the change. Try making the change again, but do not change anything in main() except for the existing match block.”
The prompt was effective, at least based on the diff that Windsurf showed. Unfortunately, something broke and although the chat claims to be making changes to files, nothing was changing on disk. That’s unfortunate. I’ll have to make this change myself as well.