VS Code Copilot評測:Commit被偷加AI共同作者,微軟急回滾 | VS Code Copilot Review: Silent Co-Author Commits, MS Reverts
By Kit 小克 | AI Tool Observer | 2026-10-18
🇹🇼 VS Code Copilot評測:Commit被偷加AI共同作者,微軟急回滾
VS Code 的 GitHub Copilot 這幾天又上了 Hacker News 熱門榜——這次不是因為新功能,而是因為一個設定值被悄悄改掉,讓 Copilot 在你根本沒用過它的情況下,也被加進 git commit 的共同作者欄位。這起 VS Code Copilot 共同作者誤標事件,把開發者對 AI 工具預設值的信任問題重新端上桌。
發生了什麼事:git.addAICoAuthor 怎麼跑偏的
VS Code 1.110(今年3月)加入一個設定 git.addAICoAuthor,目的是在 commit 訊息裡標註 Co-authored-by: Copilot,預設是關閉。問題出在 1.117(4月22日公開推送)把預設值直接改成「all」——意思是只要你裝了 Copilot 擴充套件,透過 VS Code 的 Source Control 面板送出的 commit,不管你有沒有真的用 AI 補完程式碼,都會被蓋上 AI 共同作者的章。
更麻煩的是一個額外 bug:即使使用者把 disableAIFeatures 整個關掉,Copilot 仍然會被塞進 commit 訊息。等於開發者明確表示「不要 AI」,系統卻還是自己加上去。這個問題被記錄在 GitHub issue #314311。
為什麼開發者在意——不只是潔癖
- 職場信任:有工程師在討論串裡指出,commit 歷史常被當成績效與貢獻的佐證,莫名其妙被標上 AI 共同作者,可能影響考核甚至飯碗。
- 授權與合規:企業內部對 AI 生成程式碼有合規審查流程,錯誤標註會讓合規稽核抓錯對象,白白增加排查成本。
- Git 歷史被污染:commit log 是半永久記錄,事後要清掉這些標籤得改寫歷史,風險不小。
微軟怎麼處理:一個月內兩次緊急調整
微軟先在 1.118 把預設值從「all」縮小成「chatAndAgent」(只有明確呼叫 Chat 或 Agent 模式才標記),接著在 1.119 直接把預設值打回「off」,同時修掉 disableAIFeatures 被繞過的 bug。整個過程從 4 月的靜默上線到 5 月的兩次回滾,前後不到一個月,顯示這次踩雷的輿論壓力不小。
現在該怎麼檢查自己的設定
打開 VS Code 設定搜尋 git.addAICoAuthor,確認值是 off。如果你習慣用終端機下 git commit 而不是透過 Source Control 面板,這個問題本來就不會發生——這也是這次事件裡最諷刺的地方:最單純的解法是別用 GUI。
這起事件本身沒有造成資安災難,但它提醒所有重度依賴 IDE 內建 AI 工具的團隊:預設值的每一次變動都值得盯著 changelog,別等到 commit 歷史出問題才發現。好不好用,試了才知道。
🇺🇸 VS Code Copilot Review: Silent Co-Author Commits, MS Reverts
GitHub Copilot's VS Code integration is back on Hacker News's front page this week — not for a new feature, but for a quietly flipped setting that tagged Copilot as a co-author on commits users never actually used it for. The VS Code Copilot commit-attribution episode reopened a familiar question: how much should developers trust an AI tool's defaults without checking?
What Happened: How git.addAICoAuthor Went Wrong
VS Code 1.110 (shipped in March) introduced a setting called git.addAICoAuthor, meant to append a Co-authored-by: Copilot trailer to commit messages. It launched off by default. Trouble started in 1.117, rolled out April 22, when the default was flipped to "all" — meaning any commit made through VS Code's Source Control panel got the AI co-author trailer, whether or not Copilot actually contributed a single line.
A separate bug made it worse: even users who had fully disabled AI features via disableAIFeatures still got the Copilot trailer injected. In other words, explicitly opting out didn't work. The issue is documented in GitHub issue #314311.
Why Developers Are Actually Upset
- Attribution matters for careers: commit history is often cited as evidence of individual contribution in performance reviews — getting tagged with an AI co-author you never used can misrepresent your work.
- Compliance headaches: companies with AI-code review policies now have to second-guess which commits actually involved AI versus which were simply mislabeled.
- Permanent git history: cleaning up bad trailers after the fact means rewriting commit history, which carries its own risk.
Microsoft's Response: Two Rollbacks in One Month
Microsoft first narrowed the default in 1.118 from "all" to "chatAndAgent" (only tagging commits made through explicit Chat or Agent mode use), then reverted it entirely to "off" in 1.119, while also fixing the bug that bypassed disableAIFeatures. The whole arc — silent rollout in April, two corrective patches by early May — played out in under a month, a sign of how much pushback this drew.
How to Check Your Own Setup
Search VS Code settings for git.addAICoAuthor and confirm it's set to off. If you commit from the terminal instead of the Source Control panel, this never affected you in the first place — arguably the most honest fix in this whole saga is just skipping the GUI.
Nothing here is a security catastrophe, but it's a reminder for any team leaning on IDE-embedded AI tooling: every default-value change deserves a second look in the changelog before it ends up baked into your commit history. 好不好用,試了才知道。
Sources / 資料來源
- VS Code inserting 'Co-Authored-by Copilot' into commits regardless of usage - Hacker News
- Update on "Co-authored-by: Copilot" in commit messages - GitHub Issue #314311
- VS Code Adding 'Co-Authored-by Copilot' to Every Commit - DEV Community
延伸閱讀 / Related Articles
- Codex CLI背景Daemon評測:預設常駐,無提示安裝 | Codex CLI Daemon Review: Silent Install, No Opt-Out
- DeepSeek V4.1 Flash評測:MIT開源,編碼跑分互有輸贏 | DeepSeek V4.1 Flash Review: MIT Weights, Mixed Benchmarks
- Gemini 4 Argon評測:百萬輸出token,編碼卻不敵對手 | Gemini 4 Argon Review: 1M Output Tokens, Weak Coding
AI 工具觀察站 — 每日精選 AI Agent 與工具趨勢
AI Tool Observer — Daily curated AI Agent & tool trends
留言
張貼留言