Opening a file after agent changes no longer shows an Agent change on screen. I believe the file is opening to the last position you were at when you closed the file.
Steps to Reproduce
Have a file that is multiple screens in length.
Ensure the file is in source control.
Open the file, go to the top and then close the file.
Ask the Agent to add some line to the bottom of the file.
Open the file. You will be at the top of the file.
Expected Behavior
Prior to updates this week, a change was always displayed on screen. I could then accept/undo and the window would move to the next change.
One detail will tell us where to look: how are you opening the file in that last step? From the Explorer sidebar, from Ctrl+P, or by clicking the file name in the chat (in the list of changed files above the chat input, or on the edit card in the conversation)?
Could you try this once and tell me what you see:
Open a long file that is tracked in git, scroll to the top, and close the tab.
In a new chat, ask the Agent to add a line at the bottom of that file and wait for it to finish.
Open the file from the Explorer sidebar. Note whether you see the change or the top of the file.
Close the tab again.
In the chat, click the file name in the list of changed files just above the chat input.
Does step 5 take you to the change? Please reply with the results of steps 3 and 5.
In the meantime, once the file is open you can press Alt+J (Go to Next Change), or use the arrows in the Undo/Keep bar at the bottom of the editor. Both jump straight to the agent’s change, and after Keep or Undo the editor moves on to the next one.
I always open files from the explorer side bar. edited - I originally said I would do the test and let you know but I’m 100% confident I will get the same result. If for some reason I don’t see the expected error I will let you know.
I tried the same steps here, and clicking the file in the changed-files list does take me to the agent’s change, so I’d like to make sure we clicked the same thing.
After the Agent finishes, look just above the chat input for a small row that says “1 File” with Undo, Keep and Review on the right.
Click “1 File” to expand it. A row with the file name and a green +N count appears under it.
Click the file name in that new row (not the file name inside the Agent’s message text).
Does step 3 take you to the change? If it still opens at the top, could you share a short screen recording of steps 1 to 3?
For context: opening the file from the Explorer sidebar, or from the file name link inside the Agent’s reply text, opens it where you last left it rather than at the change. Alt+J (or the arrows in the Undo/Keep bar) jumps straight to the change from there.
Thanks for the clarification. I had clicked on the file in the Agent chat and not in the file list. Clicking on the file in the file list does take me to the change.