Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

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

已关闭 适合新手
#2,525 1 条评论 0 个 reaction 已指派 1 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
82/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
活跃
技术栈
typescript
领域
frontend

调研方向

从 clients/web/src/components/groups/ToolResultPanel/ToolResultPanel.tsx 开始,这里 ResultScroll 包裹 ContentViewer,JSON 结果使用 Ace 代码视图。使用一个较长的 JSON 工具结果复现该问题,然后检查外层 ScrollArea 和 Ace 滚动容器。完成的标准是:Ace 渲染的长结果显示一个垂直滚动条,同时纯文本结果不受影响。

由索引模型根据 Issue 内容生成。

描述

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.

主要语言
TypeScript
星标
11.1k
派生
1.6k
平均合并
5 小时 38 分钟
30 天内合并 PR
152

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

modelcontextprotocol/inspector 的其他 Issue

查看 modelcontextprotocol/inspector 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。