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 ?