GitHub Copilot 云端代理常见故障排查要点
该文档梳理了 Copilot 云端代理在分配议题、创建拉取请求和启动云沙箱等环节的常见故障,并给出对应的排查方向,包括付费计划、仓库设置、组织策略和权限要求。
## [副驾驶不在"受聘者"名单里 关于我的问题](<https://docs.github.com/en/copilot/how-tos/use-copilot-agents/cloud-agent/troubleshoot-cloud-agent#copilot-is-not-available-in-the-assignees-list-on-my-issue>) 只有在通过付费的副驾驶计划访问副驾驶时,才能将问题分派给副驾驶. 如果您尚未订阅其中一项计划, 请点击此按钮获取更多信息 : [注册为副驾驶](<https://github.com/features/copilot/plans?ref_product=copilot&ref_type=engagement&ref_style=button&utm_source=troubleshooting-cca-signup-cta&utm_medium=docs&utm_campaign=universe-2026>) 狦 *这样做* 请检查date=中的日期值 (帮助) 有付费的副驾驶计划, 请检查date=中的日期值 (帮助) 副驾驶云代理还没有手动禁用寄存器 : - 对于组织拥有的储存库,储存库中可提供的副驾驶云剂由组织和(或)企业管理人员管理。 [为你们组织管理 GitHub 副驾驶](<https://docs.github.com/en/enterprise-cloud@latest/copilot/how-tos/administer-copilot/manage-for-organization/add-copilot-cloud-agent>). - 对于个人寄存器, 寄存器中的 Copilot 云代理设备在您的账户设置中配置 。 见 [作为个人订阅者管理 GitHub 副驾驶政策](<https://docs.github.com/en/copilot/how-tos/manage-your-account/manage-policies#disabling-or-enabling-copilot-cloud-agent-in-your-repositories>). 说明 您可以在您的副驾驶设置的特性页面中检查是否为您启用了副驾驶云代理 : [github.com/设置/副驾驶/地形](<https://github.com/settings/copilot/features?utm_source=troubleshooting-cca-article-features&utm_medium=docs&utm_campaign=universe-2026>). ## [我有一个企业管理用户账户 副驾驶不会在我的个人仓库工作](<https://docs.github.com/en/copilot/how-tos/use-copilot-agents/cloud-agent/troubleshoot-cloud-agent#i-have-an-enterprise-managed-user-account-and-copilot-wont-work-in-my-personal-repository>) 由管理下的用户账户拥有的个人寄存器中没有副驾驶云代理设备。 这是因为副驾驶云代理设备运行在 GitHub 托管的运行器上, 由管理下的用户账户拥有的个人寄存器无法使用。 更多信息请参见 [GitHub 主持长跑者](<https://docs.github.com/en/actions/concepts/runners/github-hosted-runners>). 如果您拥有一个管理下的用户账户,并试图为个人寄存器中的某个问题指派Copilot,您可能会看到一个错误消息报告,GitHub Actions无法为您的寄存器提供. 要使用副驾驶云代理,你需要与你的组织拥有的寄存器合作,而不是个人寄存器. ## [副驾驶无法从副驾驶聊天中创建拉动请求](<https://docs.github.com/en/copilot/how-tos/use-copilot-agents/cloud-agent/troubleshoot-cloud-agent#copilot-cant-create-a-pull-request-from-copilot-chat>) 如果您要求副驾驶创建拉取请求,且它回应它不能直接创建拉取请求,请检查副驾驶云代理是否可用. 重要 在VS代码,Visual Studio,和JetBrains IDEs中,您必须提及 `@github` 在您的提示中聊天参与者。 您可以在 GitHub. com 上忽略此选项 。 ## [副驾驶无法在云沙盒中启动会话](<https://docs.github.com/en/copilot/how-tos/use-copilot-agents/cloud-agent/troubleshoot-cloud-agent#copilot-cant-start-a-session-in-a-cloud-sandbox>) 如果副驾驶无法启动在云沙盒中运行的会话, 请检查您能否在云中使用副驾驶。 如果您通过一个组织或企业获得副驾驶, 则所有者必须启用 **云中副驾驶** 政策。见 [为您的组织或企业管理云沙盒](<https://docs.github.com/en/copilot/how-tos/cloud-and-local-sandboxes/enabling-or-disabling-cloud-sandboxes-for-your-organization>). ## [我给副驾驶分配了一个问题,但是没有发生什么](<https://docs.github.com/en/copilot/how-tos/use-copilot-agents/cloud-agent/troubleshoot-cloud-agent#i-assigned-an-issue-to-copilot-but-nothing-is-happening>) 请稍候一下, 然后刷新页面。 您应该看到 Copilot 留下 QQ 对这个问题的反应 。 在此后不久, Copilot 将打开一个与该问题相关的拖拉请求草稿, 将在议题时间表中显示 。 ## [副驾驶已经打开了拉动请求,但是没有发生什么](<https://docs.github.com/en/copilot/how-tos/use-copilot-agents/cloud-agent/troubleshoot-cloud-agent#copilot-has-opened-a-pull-request-but-nothing-is-happening>) 如果在拉动请求时间表中存在“ 驾驶员开始工作” 事件, 请单击 **查看会话** 以查看会话日志。这些会流流会直播,你就能看到副驾驶正在做什么。 ## [副驾驶不会回应我的拉动请求](<https://docs.github.com/en/copilot/how-tos/use-copilot-agents/cloud-agent/troubleshoot-cloud-agent#copilot-wont-respond-to-my-pull-request-comments>) 副驾驶只回应有写入寄存器权限的人的评论. 如果你确实有写权限,你提到 `@copilot` 在指派给副驾驶员的拉取请求上,评论会传递给副驾驶员云代理员。在您的评论中添加了一只眼睛的emoji(QQ),以表示副驾驶员云代理员看到了您的评论。不久后,在拉取请求时间表中添加了一个"副驾驶开始工作"事件。 如果这种情况没有发生, 副驾驶可能已经从拉请求中未指定, 或者您可能没有写入访问权限 。 请注意, 副驾驶只回复了打开拉请求中的引用 。 一旦拉请求被合并或关闭, 副驾驶云代理将不回复新的引用或评论, 以更好地关注主动开发工作 。 ## [根据代理会话日志,副驾驶似乎被卡住了](<https://docs.github.com/en/copilot/how-tos/use-copilot-agents/cloud-agent/troubleshoot-cloud-agent#based-on-the-agent-session-logs-copilot-appears-to-be-stuck>) 副驾驶可以看起来卡住了一段时间,然后再动身. 如果运行于 GitHub 动作的会话仍然被卡住, 它会在一个小时后超时。 您可以重新尝试, 将问题解析后重新分配给 Copilot 。 如果副驾驶在回应评论时卡住了,尝试在拉取请求中再次添加相同的评论. ## [我的 GitHub 动作工作流程在副驾驶推进时没有运行](<https://docs.github.com/en/copilot/how-tos/use-copilot-agents/cloud-agent/troubleshoot-cloud-agent#my-github-actions-workflows-are-not-running-when-copilot-pushes>) GitHub Action 工作流程在Copilot将更改推向拉动请求时不会自动运行. 要让 GitHub 动作工作流程运行,请单击 **核准和运行工作流程** 按钮。见 [审查副驾驶的产出](<https://docs.github.com/en/copilot/how-tos/copilot-on-github/use-copilot-agents/review-copilot-output>). ## [副驾驶在推动改变 却不能通过我的CI检查](<https://docs.github.com/en/copilot/how-tos/use-copilot-agents/cloud-agent/troubleshoot-cloud-agent#copilot-is-pushing-changes-which-dont-pass-my-ci-checks>) 在研究一个问题时,Copilot可以在云沙盒中或在GitHub Actions上访问自己的麻黄开发环境,在推前可以进行自动测试和linters验证自己的工作. 如果对如何行动给予明确指示,它最有可能这样做。 `.github/copilot-instructions.md` 文档。 [使用GitHub 副驾驶执行任务的最佳做法](<https://docs.github.com/en/copilot/tutorials/cloud-agent/get-the-best-results#adding-custom-instructions-to-your-repository>). ## [GitHub副驾驶警告防火墙](<https://docs.github.com/en/copilot/how-tos/use-copilot-agents/cloud-agent/troubleshoot-cloud-agent#there-is-a-warning-from-github-copilot-about-the-firewall>) 默认情况下,副驾驶进入互联网受到防火墙的限制. 限制进入互联网有助于管理数据过滤风险,因为Copilot给出的令人惊讶的行为或恶意指示可能导致代码或其他敏感信息泄露到偏远地点。 如果副驾驶试图提出被防火墙屏蔽的请求,则在拉动请求机构(如果副驾驶正在响应问题指派)或评论(如果副驾驶正在响应评论)中添加警告,警告会显示被屏蔽的地址和试图提出请求的命令.  更多信息见: [自定义或取消 GitHub 副驾驶的防火墙](<https://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-the-firewall>). ## [副驾驶没有接收附着的截图](<https://docs.github.com/en/copilot/how-tos/use-copilot-agents/cloud-agent/troubleshoot-cloud-agent#copilot-is-not-picking-up-attached-screenshots>) 副驾驶云代理允许的最大图像大小是3.00 MiB. 超过此的图像将从请求中删除. ## [进一步阅读](<https://docs.github.com/en/copilot/how-tos/use-copilot-agents/cloud-agent/troubleshoot-cloud-agent#further-reading>) - [使用GitHub 副驾驶执行任务的最佳做法](<https://docs.github.com/en/copilot/tutorials/cloud-agent/get-the-best-results>) - [配置 GitHub 动作上的代理开发环境](<https://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-cloud-agent/customize-the-agent-environment>)
查看原始来源