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

オープン 初心者向け
#4,517 コメント 0 件 リアクション 0 件 担当者 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分
マージ済み PR(30日)
799

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

backnotprop/plannotator のほかの issue

backnotprop/plannotator の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。