github / github/app

BUG agent session creates PR that doesn't get linked properly

未关闭
#653 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
Bugs
主要语言
没有语言数据
星标
2.1k
派生
153
PR 合并指标
30 天内没有已合并 PR

描述

### Short summary

PR not linked to session

### Affected version or release

v0.2.5

### Installation context

_No response_

### What happened?

This happens to me on every other PR. Very annoying for obvious reasons.

The MCP function the agent tries to use to open the PR fails with 422, apparently because we work off of forks and can't create branches on the main repo. Then, it usually asks me if it is allowed to use `gh` to open the PR, and I approve. But it's about 50-50 on whether the PR actually gets linked. I've had some sessions try to update whatever local DB state is missing the linkage but that never helped either.

Happy to provide examples for investigation if it helps.

### Steps to reproduce

_No response_

### Expected behavior

PR gets linked

### Additional context

Happy to provide IDs if you tell me how to retrieve them.

贡献指南

打开贡献指南

调研方向

首先从一个受影响的示例中收集 session ID 和 PR ID,然后在从 fork 工作时,将 MCP 422 路径与已批准的 gh fallback 进行比较。完成的标准是:即使 MCP 分支创建失败,所创建的 PR 也始终与其 agent session 关联。

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

评估

技术栈
github
领域
devtools
Issue 类型
缺陷
难度
4/5
预计耗时
3-5 天
活跃度
冷清
描述清晰度
需要澄清
新手友好度
35/100

把新 issue 发到你的邮箱

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