From a757ece8c31d515a887544f3813ac96d277a25dd Mon Sep 17 00:00:00 2001 From: ji ruo <79234113+RuoJi6@users.noreply.github.com> Date: Mon, 12 Oct 2026 11:42:41 +0800 Subject: [PATCH] fix: keep approval script details visible --- web/src/components/approval-records.tsx | 55 ++++++++++++++----------- 1 file changed, 32 insertions(+), 23 deletions(-) diff --git a/web/src/components/approval-records.tsx b/web/src/components/approval-records.tsx index a5e2e59..c5cbac4 100644 --- a/web/src/components/approval-records.tsx +++ b/web/src/components/approval-records.tsx @@ -206,33 +206,42 @@ function ScriptSnapshotSummary({ input }: { input: InterceptReviewInput }) { {files.map((file) => ( -
{file.path}
- {file.sha256 ? SHA-256 {file.sha256.slice(0, 12)}… : null}
- {file.bytes != null ? {file.bytes} 字节 : null}
- {file.read_error}
: null} - {file.content ? ( -这是执行前实际发送给审查模型的脚本快照。
); } +function ScriptFileSnapshot({ file }: { file: NonNullable{file.path}
+ {file.sha256 ? SHA-256 {file.sha256.slice(0, 12)}… : null}
+ {file.bytes != null ? {file.bytes} 字节 : null}
+ {file.read_error}
: null} + {file.content ? ( + <> + + {open ?