Inbox: permission prompt (perm:) sessions appear as duplicate agents in the recipient picker and participants

未关闭 适合新手
#4,517 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

@Djiit 已经在做这个了。

开始于 2026年12月4日。

  • #4514 来自 @Djiit —— 未关闭

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
72/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
活跃
技术栈
typescript

调研方向

先追踪 packages/inbox/tags.ts 和 packages/shared/inbox/store.ts 中线程参与者的收集方式,然后检查 packages/server/inbox-sessions.ts 和 packages/server/inbox-mcp-read.ts 中的 MCP 路径。查看这些路径如何处理带有合成 perm: 会话 ID 的作者;完成的标准是这些路径不再将此类会话作为单独的参与者或可选收件人公开。issue 没有提到测试文件,因此请在修改之前找到相关的 Inbox 测试。

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

描述

What happened?

When a launched agent triggers a permission card in an Inbox thread, a second duplicate agent (such as Vibe 2 or Claude Code 2, marked Not woken) appears in the reply recipient picker, in thread list participants, in taggable MCP agents, and in read_thread participants.

Permission cards are authored under the synthetic session ID perm:<session_id> so Allow/Deny clicks route to the waiting permission handler without waking the main session. While iOS and agentSessions already filter out perm:* sessions, four places do not:

  • packages/inbox/tags.ts (threadParticipants) includes perm:* message authors, so the recipient picker adds a second row (<Agent> 2).
  • packages/shared/inbox/store.ts (everyParticipantOf) includes perm:* in participantsOf, leaking into thread list rows.
  • packages/server/inbox-sessions.ts (mcpAgents) includes perm:* messages where wakes !== true, exposing them in /api/inbox/threads/:id/taggable and showing the duplicate row as Not woken.
  • packages/server/inbox-mcp-read.ts (windowedThread) includes perm:* authors in read_thread participants, which also flips manyAgents to true.

Expected: perm:* sessions stay internal to the permission card and never appear as separate thread participants or selectable reply recipients.

Draft PR: #4514

Plannotator version

0.29.18

OS

macOS

Agent

Other

Where did it happen?

Inbox

主要语言
TypeScript
星标
8.7k
派生
649
平均合并
16 小时 26 分钟
30 天内合并 PR
799

环境准备

从这里开始

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

backnotprop/plannotator 的其他 Issue

查看 backnotprop/plannotator 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

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