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

Open Beginner friendly
#4,517 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

@Djiit is already working on this.

Since Dec 4, 2026.

  • #4514 by @Djiit — open

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
72/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
typescript

Research direction

Start by tracing how thread participants are collected in packages/inbox/tags.ts and packages/shared/inbox/store.ts, then check the MCP paths in packages/server/inbox-sessions.ts and packages/server/inbox-mcp-read.ts. Look for how those paths handle authors with synthetic perm: session IDs; done means they no longer expose these sessions as separate participants or selectable recipients. The issue mentions no test files, so find the related Inbox tests before making a change.

Written by the indexing model from the issue text.

Description

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

Dominant language
TypeScript
Stars
8.7k
Forks
649
Avg merge
16h 26m
Merged PRs (30d)
799

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from backnotprop/plannotator

All issues in backnotprop/plannotator

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.