TUI Network zoom view renders all request headers on one cropped line

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

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
1/5
预计耗时
1 小时以内
新手友好度
86/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
活跃
技术栈
react, typescript

调研方向

从 clients/tui/src/App.tsx 第 1592 行附近开始,检查包裹缩放视图请求标头的 <Box>;将其布局与 RequestsTab.tsx 中的标头进行比较。按照 issue 中的步骤在 TUI 的 Network 选项卡中重现问题,然后确认每个标头都单独显示在一行上且没有被裁剪。

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

描述

bug v2

Found during the v2.18.0 release smoke (#3127). Pre-existing: the code dates from the original TUI port (#1452).

Problem

In the TUI's Network tab, the + zoom view of a request puts the "Request Headers:" label and every header row on one line, which is then cropped:

Reaccept: application/json, text/event-stream authorization: [REDACTED] content-type: application/json dpop: [REDACTED] ocp-apim-subscription-key: [RE

The <Box> that wraps them, at about clients/tui/src/App.tsx:1592, has no flexDirection="column". The details pane (RequestsTab.tsx) lays the same headers out correctly, one per line.

Repro

  1. Connect the TUI to an HTTP server.
  2. Open the Network tab (n), press Tab twice, then +.

Expected

One header per line, as in the details pane.

主要语言
TypeScript
星标
11.4k
派生
1.6k
平均合并
2 小时 27 分钟
30 天内合并 PR
121

环境准备

从这里开始

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

modelcontextprotocol/inspector 的其他 Issue

查看 modelcontextprotocol/inspector 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

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