GitHub Copilot 每周发布动态——9月14日
英文标题:GitHub Copilot weekly releases — September 14
本周 GitHub Copilot 推出了更多模型选择选项、代码审查改进,以及 Copilot app 中与 Sentry 的集成。开发者可通过新的效率、平衡和智能档位,在成本、质量与响应速度之间调整自动模型选择策略;VS Code Agents 窗口也新增了正式可用的使用指标。管理员获得了仓库自定义属性建议、AI credit 额度申请审批等功能,而 VS Code Agent 则支持本地 Dev Container、自动清理会话及直接创建 Pull Request。
96.7 KB
91.6 KB
287.3 KB
134.9 KB
中文
本周,GitHub Copilot 新增了模型选择选项、代码审查更新,以及 Copilot app 中的 Sentry 集成。同时还包括面向管理员的更新,以及 VS Code 中的新 Agent 功能。
-
Copilot 代码审查现在会在后续审查中将已处理的评论标记为已解决,同时保留尚未处理的反馈。应用其代码建议时,它还会推荐提交信息。审查可以使用 shell 工具验证变更,而 Lite 审查现在会合并多个 Agent 的发现结果。
-
通过自动模型选择中的新“效率”“平衡”和“智能”档位,选择 Copilot 如何权衡成本、质量和响应时间。三个档位均从同一组可用模型中进行选择。此更新正在 VS Code、Copilot CLI 和 Copilot app 中逐步推出。
-
借助现已正式可用的新使用指标,在专属的 VS Code Agents 窗口中衡量采用情况和活跃度。企业和组织报告包含每日活跃用户数、会话数和用户消息总数,以及用户级别的活动数据。这些指标与编辑器窗口指标相互独立。
-
获取 Copilot 建议以帮助选择仓库自定义属性的值,该功能现处于公开预览阶段。例如,创建
internet-facing属性时,Copilot 可以建议将yes和no作为允许值。组织和企业所有者可以通过 Copilot 策略启用或关闭建议功能。 -
当达到 AI credit 限额时,可向所在组织或企业申请更高的 Copilot 预算。所有者和计费管理员可以在设置中批准、调整或拒绝请求。获得批准后将恢复 AI credit 的访问权限。该功能现已面向采用按使用量计费的 Copilot Business 和 Copilot Enterprise 计划正式可用。不适用于使用托管用户的企业。
通过 Sentry 报告修复生产环境崩溃问题。借助 GitHub Copilot app 中新的 Sentry 画布,可从崩溃报告直接推进至代码修复。查看错误、堆栈跟踪及相关上下文,然后与 Copilot 协作调查原因、验证修复方案并准备 Pull Request。
下载 Copilot app。
- 在 Agents 窗口中,使用本地 Dev Container 让 Agent 运行项目的工具和依赖项。该支持正在逐步推出,并且需要同时具备 Docker 和受支持的 Dev Container 配置。
- 当会话关联的所有 Pull Request 均已合并后,自动将不活跃会话标记为 完成;还可选择在另一个独立的宽限期后删除会话。自动清理为自选功能,现处于预览阶段。
- 无需离开 Agents 窗口,即可从 Agent Host 会话创建 Pull Request。审查生成的标题和描述、选择草稿状态,然后直接创建 Pull Request,或让 Agent 为你完成创建。
在完整发行说明中探索所有新增内容。
English / 原文
This week, GitHub Copilot adds new model selection options, code review updates, and Sentry integration in the Copilot app. There are also updates for admins, plus new agent features in VS Code.
-
Copilot code review now resolves addressed comments during subsequent reviews, leaving outstanding feedback open. It also suggests commit messages when you apply its code suggestions. Reviews can use shell tools to validate changes, and Lite reviews now combine findings from multiple agents.
-
Choose how Copilot weighs cost, quality, and response time with the new efficiency, balance, and intelligence tiers in auto model selection. All three tiers select from the same available models. This update is rolling out in VS Code, Copilot CLI, and the Copilot app.
-
Measure adoption and activity in the dedicated VS Code Agents window with new usage metrics that are now generally available. Enterprise and organization reports include daily active users, session counts, and user message totals, alongside user-level activity data. These metrics are separate from the editor-window metrics.
-
Get help choosing values for repository custom properties with Copilot suggestions, now in public preview. For example, when you create an
internet-facingproperty, Copilot can suggestyesandnoas allowed values. Organization and enterprise owners can turn suggestions on or off through a Copilot policy. -
Request a higher Copilot budget from your organization or enterprise when you reach your AI credit limit. Owners and billing managers can approve, adjust, or deny requests in settings. Approval restores access to AI credits. This is now generally available for Copilot Business and Copilot Enterprise plans with usage-based billing. This feature is not available for enterprises with managed users.
Fix production crashes from Sentry reports. Move from crash report to code fix with the new Sentry canvas in the GitHub Copilot app. Review errors, stack traces, and related context, then work with Copilot to investigate the cause, validate a fix, and prepare a pull request.
Download the Copilot app.
- Run agents with your project’s tools and dependencies using local Dev Containers in the Agents window. Support is rolling out gradually and requires both Docker and a supported Dev Container configuration.
- Automatically mark inactive sessions as Done once all their pull requests merge, with optional deletion after a separate grace period. Automatic cleanup is opt-in and now in preview.
- Create pull requests from Agent Host sessions without leaving the Agents window. Review the generated title and description, choose draft status, and create the pull request directly or ask your agent to do it.
Explore everything that’s new in the full release notes.