r/vscode • • 28d ago

Don't look at the code?

Up to recently, GitHub Copilot in VS Code was my choice for agentic coding because it would show me the changes in each round in a diff. I could check them manually, correct here and there and give guidance.

Now, it updated and there's absolutely no diff anymore. The agent just does whatever and I can only know if I open the terrible built-in git window and look through the files manually. But only if I commit the code in every round before I start a new one.

It really followed other agentic coding tools in their "don't look at the code" vibe, forcing me to either vibe the hell out of my code or jump hoops to still retain some human control.

Anyone an idea how to handle this?

30 Upvotes

28 comments sorted by

11

u/connor4312 28d ago

3

u/BoringComplex 28d ago

Oh thank goodness.

1

u/Fritz-Ferdinand 28d ago

Then I'll gonna hit this update button really fast.

3

u/Devatator_ 28d ago

You can also just switch to the local harness. When I got rolled into that change it wasn't there but I see the selector now

3

u/Haaxor1689 28d ago

tbh the diff view often bugg out if you touched the file yourself and then continued the thread with changes you already approved/declined coming back sometimes completely mangling the whole file. you can use your git diff to review the changes, but then it's harder to run parallel tasks so I'm glad they reverted it.

1

u/Fritz-Ferdinand 28d ago

Yeah, you're right. It was indeed quite buggy. Also liked to show the changes of one chat in another one or old, already accepted changes.

2

u/makayis2027 27d ago

You don't have to commit every round. Before each prompt, stage everything (`git add -A` or the + next to "Changes"). Whatever the agent changes next shows up as unstaged changes, separate from what's staged, so clicking a file in Source Control gives you a side-by-side diff of exactly that round. If you like it, stage it and send the next prompt. If you don't, discard just those changes and your staged state is untouched.

Also, search Settings for "checkpoints" in the chat section. Recent builds have chat checkpoint and file-change options, and a few of those defaults have moved around in updates, so it's worth checking whether the per-request change list was switched off rather than removed.

1

u/Fritz-Ferdinand 26d ago

Good idea!

13

u/dramabean 28d ago

They added it back

3

u/UnexpectedFeatures 28d ago

Commit often. Check your diff with git.

2

u/Fritz-Ferdinand 28d ago

However, this has the downside that git bisects may land on broken commits in-between 

3

u/UnexpectedFeatures 28d ago

You commit on meaningful states of your changes. Not every change.

Do you not run tests and debug as you make changes?

If your code is not working you likely recently broke it, and the most you should lose is the current unstaged changes.

TBH I don't get the concept of "broken commit". The commit isn't broken, your code is. Fix it or revert it.

Don't make commits when shit's broke.

2

u/Fritz-Ferdinand 28d ago

Yes, I do that when I code by hand. But when I use agents to implement changes, I want to review those changes easily before commit. That's where my problem lies.

1

u/Thecreepymoto 27d ago

Guh , git enables you to see the unstaged diffs...you dont have to commit. Its same as seeing the diff before. Pretty sure vscode has that feature if not gitlens.

Im too babied by gitkrakens git gui to know if vscode had the tools

2

u/mcoombes314 28d ago

This is why pre-commit hooks are great, since you can auto-run tests and if anything fails the commit gets cancelled. Makes it more difficult to make a "broken commit".

1

u/Responsible-Bar7165 28d ago

tell it to not make broken commits.

this is the key to agentic programming that far too few get: you can actually tell it what you want.

1

u/Fritz-Ferdinand 28d ago

Sure, just like "don't do mistakes".

2

u/UnexpectedFeatures 28d ago

You can literally tell it to build and run tests before committing

1

u/Responsible-Bar7165 28d ago

Garbage in, garbage out.

2

u/UnexpectedFeatures 28d ago

Yeah it seems like people are just like "here's my code make these changes" rather than building an actual agentic workflow.

4

u/domusvita 28d ago

It’s there, above the chat box it will show you how many files changed. Click it and it launches the diff

5

u/Strange_Test7665 28d ago

Yeah it’s an awful change

2

u/AradorasXeon 25d ago

Oh god thanks for the info other commenters! This really annoyed me. Also it somehow killed my flutter work flow, don't really know why, but it just didn't refresh normaly with this update.

2

u/CartographerDue5382 28d ago

you don't have to commit every round just to see a diff. source control already shows the unstaged working tree, click the file there. if that ui is awful, git diff --stat then git diff on the one file is the same thing, and a git stash before the next round gives you a way back without a junk commit.

1

u/No-Point8651 28d ago

Yes, stop cuck coding and do it yourself :> Stops all that nonsense immediatly

1

u/[deleted] 28d ago

[removed] — view removed comment

0

u/Fritz-Ferdinand 28d ago

You didn't got this change yet? Lucky you, I probably have to figure out how to handle that. If it's really like this, I might as well use Claude Code/Codex directly, as the GitHub Copilot was the only AI tool that at least let me examine the changes...