Inbox: permission prompt (perm:) sessions appear as duplicate agents in the recipient picker and participants
Maintainers usually reply within 1 day
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
- Domain
- backend-api-design
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) includesperm:*message authors, so the recipient picker adds a second row (<Agent> 2).packages/shared/inbox/store.ts(everyParticipantOf) includesperm:*inparticipantsOf, leaking into thread list rows.packages/server/inbox-sessions.ts(mcpAgents) includesperm:*messages wherewakes !== true, exposing them in/api/inbox/threads/:id/taggableand showing the duplicate row asNot woken.packages/server/inbox-mcp-read.ts(windowedThread) includesperm:*authors inread_threadparticipants, which also flipsmanyAgentsto 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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from backnotprop/plannotator
-
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
backnotprop/plannotator#2643 · 1 reaction ·
Maintainers usually reply within 1 day
-
Annotate documentation omits per-file version history and privacy controlsMay be free again A pull request for this issue was closed without being merged. Open
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
backnotprop/plannotator#1086 · 2 comments ·
Maintainers usually reply within 1 day
-
Add Mistral Vibe support to Plannotator RoutinesPossibly taken @Djiit claimed this today. Open
Difficulty 4/5 3-5 days Newbie friendliness 25/100
backnotprop/plannotator#4515 ·
Maintainers usually reply within 1 day
-
Difficulty 5/5 Over a week Newbie friendliness 35/100
backnotprop/plannotator#4511 ·
Maintainers usually reply within 1 day
-
Clicking a saved Markdown highlight leaves the Annotations panel closedPossibly taken @goodmorninggoaway claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 35/100
backnotprop/plannotator#4498 ·
Maintainers usually reply within 1 day
All issues in backnotprop/plannotator
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
tashfeenahmed/freellmapi#2305 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
prime-radiant-inc/evener#8335 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
vercel-labs/ui#1921 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
Difficulty 1/5 1-3 hours Newbie friendliness 65/100
microsoft/monaco-editor#5626 ·
Maintainers usually reply within 1 day