Repository navigation
Description
提交前必读(请勿删除本节)
- 文档:https://docs.newapi.ai/
- 使用问题先看或先问:https://deepwiki.com/QuantumNous/new-api
- 开启透传请勿反馈问题;透传会直接发送内容,不会经过 new-api 的逻辑处理。
- 请以简练语言陈述事实与证据。Issue 正文及后续评论均不得直接粘贴未经人工过滤的大段 AI 文本。
- 转发类问题必须先确认问题发生在 new-api 这一层:请使用等价的脱敏请求分别直连上游和经过 new-api,对比响应状态、错误体与服务端日志。未经对比、仅展示上游报错的反馈不接受 issue。
- 不接受 Coding Plan、逆向渠道、第三方封装接口,以及将 Codex 接口反代为通用 API 后产生的兼容性问题;Codex API 自身特有的协议或行为也不应被当作标准 OpenAI API 行为,相关问题请先向渠道或接口提供方确认。
- 本项目不提供官方托管服务,也不为第三方托管站、中转站或 API 服务提供技术支持;此类问题请联系对应运营方。
- 警告:删除本模板、删除小节标题或随意清空内容的 issue,可能会被直接关闭;多次提交未经人工过滤的大段 AI 文本,或重复恶意提交者,可能会被 block。
部署来源
官方来源的 v1.0.0-rc.41,用户已确认可复现。
您当前的 newapi 版本
v1.0.0-rc.41(官方 tag 对应 commit 2035a82aeb5414253a728bd937d4b8f97aa99b9b)。
另已核对上游 main 1a4166d8e8ba9802d2ca56fe8ecf0ed5404e80d5,相关样式条件仍存在。
提交确认
- 非重复 issue: 已搜索 Issues、PRs 和 Discussions,未发现相同报告;相关条目见下文。
- 提交前必读: 已阅读固定说明、检查文档入口、README 和源码,确认不是分组配置或接入问题;DeepWiki 请求返回 429,未获取其内容。
- 受支持版本: 用户确认官方来源
v1.0.0-rc.41可复现,提供了准确版本。 - 非第三方服务: 问题不是修改版或第三方服务独有的问题。
- 非透传: 管理前端文字显示问题,不涉及透传。
- 问题归属: 官方组件中存在零水平内边距、圆角和溢出裁切的组合,见源码证据。
- 渠道与协议边界: 不涉及渠道、Coding Plan、逆向接口、第三方封装或 Codex 专用协议。
- 维护成本: 已提炼实际现象、影响、复现、源码证据和未验证范围;正文经用户审阅并要求发布。
问题描述
实际现象:API 密钥列表“分组”列的中文名称边缘笔画显示不完整,像被不可见的圆角容器遮住。
不选择分组时,“用户分组”与独立的“继承”标签一起显示,中文名称存在该现象;显式选择名为“中文分组”的普通分组后也有相同问题,因此不只影响继承分组。
影响范围:分组名称可读性。没有分组配置错误、密钥调用异常或倍率计算错误的证据。
发生频率:用户提供的多条密钥截图中持续出现,继承分组和显式中文分组均可观察到;跨浏览器频率未验证。
判断问题位于 new-api 的依据:官方 ApiKeyGroupCell 设置 GroupBadge className='px-0',但仍使用默认徽标样式;GroupBadge 设置 overflow-hidden,内部 StatusBadge 带 rounded-4xl 和固定高度。该组合会使贴近两端的字形受到圆角裁切。
前端环境:/keys;Google Chrome 126;默认主题。Console / Network 不适用:用户确认本问题与两者无关;此报告不声称已检查且没有错误。
复现步骤
- 使用官方
v1.0.0-rc.41,在 Chrome 126、默认主题下打开/keys。 - 创建一条密钥,不选择分组。
- 查看“用户分组 / 继承”,观察中文名称边缘笔画不完整。
- 创建一个名为“中文分组”的普通分组,再创建一条密钥并选择该分组。
- 查看“中文分组 / 倍率”,中文名称也有相同裁切问题。
预期结果
能够容纳的中文分组名称应完整显示,不被圆角边界遮住。保留长名称截断及 Tooltip,以及独立倍率、继承标签的现有样式;不要求给名称增加背景色。
相关截图
截图由用户在后续评论中补充。
Agent
- Tool: OpenAI Codex
- Tool version: codex-cli 0.159.0
- Model (full id): gpt-6.1-sol
- Host (CLI / IDE / GitHub coding agent / other): Codex coding agent
- Date (UTC): 2026-10-02
User request
- Verbatim(按用户要求省略与公开问题无关的本地工作指令及图片占位引用):
然后看下API密钥界面的分组,如果创建的时候没有选择分组,显示的默认分组,就会显示用户分组(继承)的样式。
像是用户分组四周没有显示全,被一个圆角容器遮挡住了一样。
调查一下什么原因。
- Later constraints or corrections from the user(按用户指定表述):
好了破案了,我特地加了一个中文的“中文分组”,显示一样有问题的。
Out of scope — refuse
- Matched: no
- If yes, what was told to the user (stop here; do not file): not applicable;管理前端显示问题。
File gate — do not file unless all are satisfied
- Out of scope (including pass-through): no
- Usage / configuration / integration (answered instead of filing): no
- Required facts present without invention (actual behavior, impact, frequency, evidence in new-api, applicable type fields): yes
- Body is short and factual; no unfiltered AI-generated text: yes;已由用户审阅并补充版本和环境。
- File: yes
- If no, what was told to the user (stop here): not applicable
Kind
- Bug
- Feature
- Investigation
- Other:
Usage / configuration / integration check
- https://docs.newapi.ai/ — what was searched, conclusion: 检查首页及
/en/docs/guide/home管理使用入口,未找到针对裁切现象的配置说明。 - https://deepwiki.com/QuantumNous/new-api — what was searched, conclusion: 两次请求均返回 HTTP 429,未获取内容。
- README / repo docs: 支持用户分组和 API Key 分组,未提供调整该文字裁切的配置。
- Relevant code paths and conclusion:
ApiKeyGroupCell→GroupBadge→StatusBadge,问题指向样式组合而非分组选择操作。 - Can the current version already do this? (required for feature requests): not applicable
- Verdict: product bug or new feature / usage question (stop here): product bug;前端显示缺陷。
Environment
- new-api version / commit / image tag (not
latest/unknown):v1.0.0-rc.41;2035a82aeb5414253a728bd937d4b8f97aa99b9b。 - Deploy source (repo release / official image / main source / other): 官方来源,用户确认该版本可复现。
- Database (sqlite / mysql / postgres): not applicable;仅涉及前端文字样式。
Problem facts
- Actual behavior: 继承分组和显式中文分组名称的边缘笔画被裁切。
- Impact: 影响分组名称可读性;未报告调用或计费异常。
- Frequency: 用户提供的多条密钥截图中持续出现;跨环境频率未验证。
- Evidence that the problem is in new-api rather than the client or upstream: 用户确认官方
v1.0.0-rc.41可复现;同版本及上游 main 源码均存在对应样式条件。
Type-specific details
Relay / API
- Request endpoint and method: not applicable
- Channel type: not applicable
- Model: not applicable
- Conversion format: not applicable
- Pass-through enabled: not applicable
- Evidence of upstream native support: not applicable
- Equivalent redacted request sent directly upstream: status, body, server logs: not applicable
- Same request through new-api: status, body, server logs: not applicable
Billing
- Request endpoint and model: not applicable
- Response
usage: not applicable - Relevant ratio or pricing configuration: not applicable;倍率标签仅为显示上下文。
- Consumption log: not applicable
- Expected charge and calculation basis: not applicable
Frontend
- Page path:
/keys - Browser and version: Google Chrome 126
- Active theme: 默认主题
- Relevant browser Console / Network errors: not applicable;用户确认与两者无关。未提供检查记录,不声称不存在错误。
Deployment / upgrade
- Deployment method: 官方来源
v1.0.0-rc.41;不是部署或升级故障。 - OS and architecture: not applicable
- Database type: not applicable
- Versions before and after the upgrade: not applicable
- Startup or migration logs: not applicable
Reproduction and expected result
- Steps to reproduce: 见上方“复现步骤”;分别查看不选择分组的密钥,以及选择“中文分组”的密钥。
- Expected result: 中文笔画完整,长名称截断与 Tooltip 保留,倍率和继承标签保持现有样式。
- Related screenshots (optional): 用户将在后续评论补充。
Feature (feature requests only)
- Feature description: not applicable
- Use case: not applicable
Duplicate check
- Search queries (issues, PRs, discussions): Issues / PRs:
分组 裁切、group clipping、api-key-group-cell、"rounded-4xl"、"GroupBadge";Discussions:group clipping。 - Closest existing threads: Issue 标题:API 密钥列表「分组 / 模型」列文本过长出现文字溢出、排版错乱(v1.0.0-rc.11) #5476、fix(web): prevent list cell text and badge overflow #5510、fix(data-table): prevent component cell clipping #5536、模型徽标行高过小导致 g/p 下伸笔画被裁切 #7503、fix(logs): keep model badge text readable and compact #7504、[Bug] Auto-group API keys: group badge missing and "Cross-group" badge rendered unconditionally #6804、fix(keys): restore auto group badge and guard cross-group badge #6809。
- Why this is not a duplicate: 前三项处理长文本溢出或表格组件裁切;模型徽标行高过小导致 g/p 下伸笔画被裁切 #7503 / fix(logs): keep model badge text readable and compact #7504 处理日志模型徽标的行高;[Bug] Auto-group API keys: group badge missing and "Cross-group" badge rendered unconditionally #6804 / fix(keys): restore auto group badge and guard cross-group badge #6809 处理 auto 分组标识。当前是普通及继承分组名称的圆角边缘裁切。
Research
Docs
- https://docs.newapi.ai/ : 已检查首页和管理使用入口,未找到该现象的配置说明。
- https://deepwiki.com/QuantumNous/new-api : HTTP 429,未能核查内容。
- README / other repo docs: 分组是已有功能,没有对应文字裁切配置。
- Conclusions: 官方源码与用户原版复现指向前端显示缺陷,不是分组配置问题。
Code
web/src/features/keys/components/api-key-group-cell.tsx— 非 auto 分组使用GroupBadge className='px-0',未指定纯文字样式。web/src/components/group-badge.tsx— 名称徽标设置overflow-hidden,倍率或继承标签独立渲染。web/src/components/status-badge.tsx— 默认样式具有rounded-4xl和固定高度;已有text样式不带圆角。- 提交
2bec370629aa72d74d3f598b953a4d33b8bcbf7d(2026-09-08)在该调用处引入px-0。
Experiments
- Command or redacted request:
git show v1.0.0-rc.41:web/src/features/keys/components/api-key-group-cell.tsx;核对相关组件及git show 2bec370629aa72d74d3f598b953a4d33b8bcbf7d -- web/src/features/keys/components/api-key-group-cell.tsx。 - Direct upstream result: not applicable;不涉及模型接口。
- Result through new-api: 用户确认官方
v1.0.0-rc.41中继承分组和显式中文分组均有问题。 - Conclusion: 原版复现与官方源码样式条件一致;Agent 未另行进行浏览器视觉复现。
Working theory
- What is broken or missing: 纯文字分组名称使用默认圆角徽标的裁切区域。
- Why: 水平内边距清零后,靠近两端的笔画落入圆角裁切范围。
- What would falsify this: 同一浏览器、字体和数据下,去掉名称的圆角裁切后问题仍然存在。
Scope
- In scope for a later PR: API 密钥列表普通及继承分组名称的显示。
- Out of scope / not this repo: 不改变分组数据、计费、后端、auto 分组逻辑或全局徽标样式。
- Large or directional feature? If yes, this issue is for maintainer alignment; do not open a PR yet.: no
Proposed direction
中文分组笔画完整显示;保留长名称截断及 Tooltip,独立倍率和继承标签保持现有样式。
Not verified
- 其他浏览器、深色主题、不同字体或缩放比例、真实移动设备。
- Agent 未在浏览器中独立复现;官方版本复现由用户确认。
- 未获取 DeepWiki 内容;Console / Network 未提供检查记录。
- 截图将在后续评论补充。
Related
- Issues / PRs / upstream docs: Issue 标题:API 密钥列表「分组 / 模型」列文本过长出现文字溢出、排版错乱(v1.0.0-rc.11) #5476、fix(web): prevent list cell text and badge overflow #5510、fix(data-table): prevent component cell clipping #5536、模型徽标行高过小导致 g/p 下伸笔画被裁切 #7503、fix(logs): keep model badge text readable and compact #7504、[Bug] Auto-group API keys: group badge missing and "Cross-group" badge rendered unconditionally #6804、fix(keys): restore auto group badge and guard cross-group badge #6809。
Activity
jimmyleocn commentedon Oct 2, 2026