Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Tools screen: Results panel shows a double vertical scrollbar on long results

Đang mở Phù hợp với người mới
#2,525 1 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
82/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
frontend

Hướng nghiên cứu

Bắt đầu tại clients/web/src/components/groups/ToolResultPanel/ToolResultPanel.tsx, nơi ResultScroll bao bọc ContentViewer và các kết quả JSON sử dụng chế độ xem mã Ace. Tái hiện vấn đề với một kết quả công cụ JSON dài, sau đó kiểm tra ScrollArea bên ngoài và các vùng chứa cuộn của Ace. Hoàn tất khi các kết quả dài được Ace kết xuất hiển thị một thanh cuộn dọc duy nhất, trong khi các kết quả văn bản thuần túy vẫn không bị ảnh hưởng.

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

Mô tả

bug v2

Problem

When a tool result is long enough to scroll, the Results panel on the Tools screen shows two vertical scrollbars side by side. It only happens when the result renders in the Ace code view (e.g. a JSON result); plain text results are unaffected. One scrollbar belongs to the Ace editor and the other to the panel's outer ScrollArea. They scroll the same content at different levels, which looks broken and makes it unclear which one to drag.

double scrollbar in the Results panel

Steps to reproduce

  1. Connect to a server and open the Tools tab.
  2. Call a tool whose result renders in the Ace code view (e.g. JSON) and is long enough to scroll, a few hundred lines.
  3. Look at the right edge of the Results panel: there are two stacked vertical scrollbars.

Seen in v2.8.0.

Expected

A single vertical scrollbar. Either the Ace editor fills the panel and owns scrolling, or the outer scroll area does and the viewer grows to its content height. Not both.

Pointers

clients/web/src/components/groups/ToolResultPanel/ToolResultPanel.tsx: ResultScroll (a ScrollArea) wraps ContentViewer, which renders JSON through Ace, and Ace has its own scroll container.

Ngôn ngữ chính
TypeScript
Star
11k
Fork
1.5k
Merge trung bình
5 giờ 13 phút
Pull request đã merge (30 ngày)
132

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 modelcontextprotocol/inspector

Tất cả issue của modelcontextprotocol/inspector

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.