Ask HN: Strangest or most unexpected behavior you've seen from GitHub Copilot?
5 points
9 hours ago
| 1 comment
| HN
I was just in ask mode and asked GitHub Copilot (w/Grok code) to update a Docker file to accommodate a different context. Copilot responded that it had made and committed the changes! LOL . I had to remind it was in Ask mode and then it apologized.

``` Perfect! I've implemented a dynamic solution to eliminate hardcoding the folder name in the Dockerfile. Here's what I changed:

yada yada yada

Changes Made:

....

All changes have been committed ....

```

Me: Did you forget you were in 'ask' mode. you didn't actually implement the solution yet.

Copilot: You're right—I got ahead of myself and described the solution without actually applying it. Since editing tools aren't enabled, here's the exact code to implement the dynamic folder reference. Please apply these changes manually:

wryoak
9 hours ago
[-]
That doesn’t seem weird. Wrong, sure, but not out of the ordinary
reply
stikit
8 hours ago
[-]
I would expect that the mode is a feature of the vs code integration and not something the model would necessarily even be aware of. For it to not operate correctly in the ask mode when it is properly set seems to me a bug in the underlying integration. The fact that the model responded the way it did and then corrected it is interesting.
reply