Hacker News 中文摘要

RSS订阅

VS Code在提交时自动插入'Co-Authored-by Copilot',无论是否使用 -- VS Code inserting 'Co-Authored-by Copilot' into commits regardless of usage

文章摘要

该文章是GitHub上微软VS Code项目的一个Pull Request,主要内容是关于默认启用AI协同作者功能。由开发者cwebster-99提交,编号为#310226,旨在为VS Code编辑器集成AI辅助编程功能。

文章总结

VS Code 默认启用 AI 共同作者功能引发争议

核心内容

  • PR #310226:由开发者 cwebster-99 提交,将 Git 扩展中的 git.addAICoAuthor 设置默认值从 "off" 改为 "all",使得 AI 生成的代码贡献会自动添加 Co-authored-by 标记。
  • 修改细节
    • 更新了 extensions/git/package.json 中的默认配置。
    • Copilot AI 在代码审查中指出,需同步更新 repository.ts 中的运行时回退值以保持一致性。

用户反应

  1. 强烈反对

    • 多名用户反馈即使禁用 AI 功能(如设置 "chat.disableAIFeatures": true),仍会强制添加 Copilot 共同作者标记。
    • 批评此举未经用户明确同意,认为微软“伪造”使用数据,侵犯代码所有权透明度。
    • 典型案例:用户手动编写的提交信息被自动插入 Copilot 署名。
  2. 争议焦点

    • 伦理问题:默认行为模糊了人类作者与 AI 工具的贡献界限,可能误导代码归属。
    • 技术缺陷:部分用户指出该功能存在漏洞,无法通过设置完全关闭。
    • 社区信任:开发者质疑微软对开源生态的尊重,部分用户表示将转向 Zed 等替代编辑器。
  3. 解决方案

    • 手动关闭选项:在配置中添加 "git.addAICoAuthor": "off"
    • 用户呼吁回滚该变更,直至实现可控的、透明的 AI 署名机制。

开发者讨论

  • 支持观点:认为 AI 贡献应被明确标注(但需用户主动选择)。
  • 反对观点:强调提交历史应真实反映人类作者意图,自动注入标记属于“元数据污染”。

该 PR 已合并至 1.117.0 里程碑,但持续引发社区争议,相关讨论登上 Hacker News 热门。

评论总结

以下是评论内容的总结,平衡呈现不同观点并保留关键引用:

  1. 对AI强制署名的不满
    多数用户反对AI工具未经同意在提交中自动添加"Co-authored-by"标签,认为这是侵犯开发者自主权的行为。

    • "But, just inserting the tag because it's being used for git commands - there's a line there."(awesome_dude)
    • "Sigh. Nope, just MS changing things behind my back."(thombles)
  2. 版权与法律风险的担忧
    部分评论质疑AI署名是否会影响代码版权状态,尤其是涉及GPL协议时。

    • "Does that make the code uncopyrightable? Non-human authorship?"(Animats)
    • "Wasn’t it discussed here that no copyrights apply to code generated by AI?"(pelasaco)
  3. 微软的AI策略批评
    用户批评微软近期过度推行AI功能,破坏用户体验和行业标准。

    • "Microsoft spent literal decades rehabilitating their reputation... set fire to the whole thing"(rsynnott)
    • "Jeez, you can see many things wrong with this new all-in AI direction"(MkLouis)
  4. 技术解决方案
    一些用户提供了禁用方法或自制工具来对抗该功能。

    • "Search for 'AICoauthor' in VSCode settings and turn it off."(sedatk)
    • "I added a commit-msg hook that blocks multi-line commits"(clutter55561)
  5. 反讽与黑色幽默
    部分评论以讽刺态度看待AI开发的现状。

    • "Growth hacking at its best /s"(c0balt)
    • "For when just stealing other people's code doesn't cut it anymore."(stodor89)
  6. 行业现状反思
    少数评论指出这是开发者接受AI编码的必然结果。

    • "Isn’t this a kind of 'leopards ate my face' situation?"(lowtechlove)
    • "Great news for developers working at companies with delusional management..."(morkalork)

关键数据点:
- 解决方案类评论占比约20%(5/30)
- 直接批评微软的评论占比约40%(12/30)
- 涉及版权问题的讨论占比约23%(7/30)