Messages from an outside MCP client show as "Agent" instead of the client's name

Đang mở Phù hợp với người mới
#36,853 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

Chưa có ai nhận issue này.

Đá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
70/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

Hướng nghiên cứu

Bắt đầu trong OrchestratorMcpService.ts tại sendToThread, nơi linkedSender: scope.client.senderThread là đường dẫn người gửi duy nhất được lưu; kiểm tra xem McpClientCaller.label (tên client đã được OAuth phê duyệt) có sẵn ở đâu tại điểm gọi đó. Sau đó, lần theo hình dạng thông điệp đã lưu vào TimelineUserMessageRow.tsx, nơi một thông điệp không có senderThreadId/linkedSender sẽ rơi về "Agent". Hoàn tất nghĩa là một thông điệp được gửi bởi client MCP bên ngoài hiển thị với tên client đã được phê duyệt của nó, được xác minh dựa trên một thông điệp đã lưu có creationSource: "mcp". Lưu ý rằng thread hỏi liệu điều này có phải là chủ đích hay không, vì vậy hãy xác nhận cách diễn đạt mong muốn trước khi vá.

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

Mô tả

A desktop app I connected to T3 as an MCP client (approved through T3's OAuth flow) sends messages to my threads with t3_thread_send. In the thread they show as "Agent", with no name:

Message from an MCP client labelled "Agent"

Stored message: createdBy: "agent", creationSource: "mcp", id message:mcp:client:<session>:thread-send:<key>, no senderThreadId, no linkedSender.

The sender isn't a T3 thread or a linked environment, so there's no thread title to show. The server does know the client's approved name (McpClientCaller.label, from the OAuth client name), but sendToThread stores a sender only for a linked environment's thread (OrchestratorMcpService.ts, linkedSender: scope.client.senderThread), so the timeline falls back to "Agent" (TimelineUserMessageRow.tsx).

With two outside clients, I can't tell which one wrote. Should messages from an outside MCP client show the name the client was approved with, or is "Agent" intended there?

Version: 0.1.10-nightly.20261114.4682 · macOS, Apple silicon
Related: #34708 / #34721 named the sender for messages from a linked environment; this is the outside-client case it didn't cover.

Filed by Claude Opus 5.5 in T3 Code, for EtanHey.

Ngôn ngữ chính
TypeScript
Star
24.8k
Fork
6.4k
Merge trung bình
3 giờ 40 phút
Pull request đã merge (30 ngày)
543

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

Mở trong Codespaces

Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.

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 pingdotgg/t3code

Tất cả issue của pingdotgg/t3code

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.