工具调用折叠块块头拆成两行
Project CI / Repository checks (pull_request) Failing after 10s
Project CI / Backend tests (pull_request) Failing after 11s
Project CI / Frontend tests (pull_request) Failing after 2m21s
Project CI / Native shell tests (pull_request) Failing after 5m26s

- ToolCallGroup:状态/时间与用时包进 agent-tool-call-group-meta
- styles.css:块头改两行网格(图标 + 汇总一行,状态/用时一行,箭头右侧跨两行),汇总超长省略,避免窄面板里被截断且进行中折行
This commit is contained in:
2026-09-15 19:53:16 +08:00
parent 82ac6c160f
commit 426fb9b728
2 changed files with 60 additions and 10 deletions
@@ -118,16 +118,18 @@ export function ToolCallGroup({
<ToolCallKindIcon kind={orderedCalls[0]?.kind ?? 'other'} />
</span>
<span className="agent-tool-call-group-summary">{summary}</span>
{running ? (
<span className="agent-tool-call-group-running"></span>
) : timeLabel ? (
<span className="agent-tool-call-group-time">{timeLabel}</span>
) : null}
{durationText ? (
<span className="agent-tool-call-group-duration">
{`用时 ${durationText}`}
</span>
) : null}
<span className="agent-tool-call-group-meta">
{running ? (
<span className="agent-tool-call-group-running"></span>
) : timeLabel ? (
<span className="agent-tool-call-group-time">{timeLabel}</span>
) : null}
{durationText ? (
<span className="agent-tool-call-group-duration">
{`用时 ${durationText}`}
</span>
) : null}
</span>
<ChevronDown
className="agent-tool-call-group-chevron"
size={14}
+48
View File
@@ -11897,3 +11897,51 @@ button.design-workspace-tree__entry:hover,
font-size: 12px;
line-height: 1.6;
}
/* 工具调用折叠块块头改成两行第一行图标 + 汇总超长省略第二行状态 + 用时箭头右侧跨两行
窄面板里一行塞不下汇总会被截断"进行中"还会折成两行拆成两行后每段都有自己的宽度 */
.game-workbench-chat
.project-supervisor-surface.is-direct-codex
.agent-tool-call-group-head {
display: grid;
grid-template-columns: auto minmax(0, 1fr) auto;
align-items: center;
gap: 2px 8px;
}
.game-workbench-chat
.project-supervisor-surface.is-direct-codex
.agent-tool-call-group-icon {
grid-column: 1;
grid-row: 1 / span 2;
}
.game-workbench-chat
.project-supervisor-surface.is-direct-codex
.agent-tool-call-group-summary {
grid-column: 2;
grid-row: 1;
min-width: 0;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
.game-workbench-chat
.project-supervisor-surface.is-direct-codex
.agent-tool-call-group-meta {
display: flex;
grid-column: 2;
grid-row: 2;
align-items: center;
gap: 8px;
min-width: 0;
flex-wrap: wrap;
}
.game-workbench-chat
.project-supervisor-surface.is-direct-codex
.agent-tool-call-group-chevron {
grid-column: 3;
grid-row: 1 / span 2;
}