Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Custom agents intermittently unavailable in new sessions

未关闭
#3,951 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
42/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
活跃
技术栈
github, macos
领域
ai, desktop

调研方向

从 /chat 的会话启动流程和从 .github/agents 发现自定义代理开始,重现新会话中间歇性出现的 Unknown agent_type 结果。比较成功和失败的会话,然后验证发现过程是否能在接受工作之前可靠完成,或者是否会显示明确的失败信息和恢复操作。

由索引模型根据 Issue 内容生成。

描述

Title: Custom agents intermittently unavailable in new sessions — suspected startup race

Description:

Custom agents defined in my repository’s .github/agents/ directory intermittently fail to register when starting a session in the GitHub Copilot desktop app.

In affected sessions, dispatching a custom agent returns Unknown agent_type, even though its definition exists in the repository. Other sessions correctly expose all 28 custom agents. This appears to be a session initialization or agent-discovery problem; a startup race is suspected but not confirmed.

Steps to reproduce:

  1. Open a repository containing custom agents under .github/agents/.

  2. Start a new session in the Copilot app.

  3. Ask the agent to invoke one of those custom agents.

  4. Intermittently, dispatch rejects the custom agent with Unknown agent_type. Other sessions load the agents successfully.

Expected behavior:

Custom-agent discovery should complete before the session accepts work requiring those agents. If discovery fails, the app should show an explicit error and recovery action instead of allowing execution to continue with missing capabilities.

Actual behavior and impact:

Sessions can start without the repository’s custom agents being available. Automated work then fails or continues without the intended specialist agents. This makes workflows unreliable and forces me to check agent availability and restart sessions manually.

Environment:

  • GitHub Copilot desktop app on macOS

  • App version: 1.1.21

  • Repository opened in a local worktree

  • Intermittent; exact trigger and root cause unknown

Please investigate session-start ordering and custom-agent registration, and provide a clear indication when discovery has failed or is incomplete.


Field Value
App version 1.1.21
OS macOS 27.0.0
Theme GitHub
Path /chat
Tenure Week 18
主要语言
没有语言数据
星标
2.1k
派生
157
PR 合并指标
30 天内没有已合并 PR

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

github/app 的其他 Issue

查看 github/app 的全部 Issue

相似的 Issue

更多 AI Infra & Agents Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。