From 4b1eda8e92523650cbdacc387c993f46ea1ae2e4 Mon Sep 17 00:00:00 2001 From: Autumn-27 <53844290+Autumn-27@users.noreply.github.com> Date: Wed, 30 Sep 2026 04:16:43 -0400 Subject: [PATCH] =?UTF-8?q?fix(findings):=20=E3=80=8C=E6=8C=89=E8=B5=84?= =?UTF-8?q?=E4=BA=A7=E3=80=8D=E8=A7=86=E5=9B=BE=E8=B5=84=E4=BA=A7=E5=88=97?= =?UTF-8?q?=E8=A1=A8=E6=BA=A2=E5=87=BA=E6=97=B6=E8=A1=A5=E5=9B=9E=E6=BB=9A?= =?UTF-8?q?=E5=8A=A8=E6=9D=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 左侧资产树的滚动容器靠 height:100% 取高,但外层卡片只给了 max-height 没有确定高度,百分比高度解析失败,资产多时列表撑破卡片或被截断且无法 滚动。改为把高度上限直接放到资产树的原生滚动容器上(overflow-y-auto + max-h,随窗口自适应),资产少随内容收缩、资产多封顶并出滚动条。 Closes #170 --- CHANGELOG.md | 6 ++++++ .../(main)/function/findings/_components/asset-tree.tsx | 7 +++---- web/src/app/(main)/function/findings/page.tsx | 2 +- 3 files changed, 10 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 55efead..c6f8742 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -26,6 +26,12 @@ - **修复自定义会话头在「一次性 LLM 调用」路径上不生效**:会话头的头值取自请求 context 上的 session id,而该 id 由 agentcore 仅在挂载了 transcript store 时才写入 context。目标拆解(第 0 轮)与冷节点压缩(§4 body 调用)都是不挂 store 的一次性调用,context 上没有 session id,网关侧读不到该头——对 opencode zen 这类「缺 `x-opencode-session` 直接 400 MissingSessionID」的端点,表现为「第 0 轮目标拆解 400 失败、后续 planner 轮次却完全正常」,且压缩失败只留一行日志、极难关联。现为这两条路径显式挂上按探索稳定的 session id(`exp-goals` / `exp-compactor`):既能正常带上该头,也让 llmrec 能把这两条路径的 token 用量正确归因到对应探索(此前完全记不到)。 +### 发现 + +#### 修复的问题 + +- **修复「按资产」视图资产列表溢出后没有滚动条**:左侧资产树本已套了滚动容器,但外层卡片只给了 `max-height` 而没有确定高度,滚动视口靠 `height:100%` 解析不出高度(CSS 中只设 `max-height`、`height` 仍为 `auto` 时百分比高度不生效),于是资产多时列表要么撑破卡片、要么被截断且无法滚动。现将高度上限直接落到资产树的原生滚动容器上(`overflow-y-auto` + `max-h`,随窗口高度自适应),资产少时卡片随内容收缩、资产多时封顶并出滚动条。 + ## [0.3.14] - 2026-09-24 ### 任务列表 diff --git a/web/src/app/(main)/function/findings/_components/asset-tree.tsx b/web/src/app/(main)/function/findings/_components/asset-tree.tsx index 1bf2d6b..a948077 100644 --- a/web/src/app/(main)/function/findings/_components/asset-tree.tsx +++ b/web/src/app/(main)/function/findings/_components/asset-tree.tsx @@ -18,7 +18,6 @@ import { import { Button } from "@/components/ui/button"; import { InputGroup, InputGroupAddon, InputGroupInput } from "@/components/ui/input-group"; -import { ScrollArea } from "@/components/ui/scroll-area"; import type { FindingAssetKind, FindingAssetNode } from "@/lib/types"; import { cn } from "@/lib/utils"; @@ -299,12 +298,12 @@ export function AssetTree({ {findingTotal} - -
+
+
{rows} {rows.length === 0 &&

{emptyHint}

}
- +
{truncated && (

diff --git a/web/src/app/(main)/function/findings/page.tsx b/web/src/app/(main)/function/findings/page.tsx index a054c9a..5b869f8 100644 --- a/web/src/app/(main)/function/findings/page.tsx +++ b/web/src/app/(main)/function/findings/page.tsx @@ -964,7 +964,7 @@ export default function FindingsPage() { {view === "asset" && (

- + {assetTree.loading && !assetTree.loaded ? (