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

Đang mở Phù hợp với người mới
#4,517 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

@Djiit đang làm issue này rồi.

Từ ngày 4/12/2026.

  • #4514 của @Djiit — đang mở

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
72/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
typescript
Lĩnh vực
backend-api-design

Hướng nghiên cứu

Bắt đầu bằng cách theo dõi cách những người tham gia luồng hội thoại được thu thập trong packages/inbox/tags.ts và packages/shared/inbox/store.ts, sau đó kiểm tra các đường dẫn MCP trong packages/server/inbox-sessions.ts và packages/server/inbox-mcp-read.ts. Tìm hiểu cách các đường dẫn đó xử lý tác giả có ID phiên perm: tổng hợp; hoàn thành nghĩa là chúng không còn hiển thị các phiên này dưới dạng người tham gia riêng biệt hoặc người nhận có thể chọn. Issue không đề cập đến tệp kiểm thử nào, vì vậy hãy tìm các kiểm thử Inbox liên quan trước khi thay đổi.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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

Ngôn ngữ chính
TypeScript
Star
8.7k
Fork
649
Merge trung bình
16 giờ 26 phút
Pull request đã merge (30 ngày)
799

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của backnotprop/plannotator

Tất cả issue của backnotprop/plannotator

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.