From d92d67d739596ecc9921bf06cc283a3df096ee14 Mon Sep 17 00:00:00 2001 From: lin onetwo Date: Sun, 18 Jan 2026 17:28:32 +0800 Subject: [PATCH] Update useGitLogData.ts --- src/windows/GitLog/useGitLogData.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/windows/GitLog/useGitLogData.ts b/src/windows/GitLog/useGitLogData.ts index edb7efcc..070a8f24 100644 --- a/src/windows/GitLog/useGitLogData.ts +++ b/src/windows/GitLog/useGitLogData.ts @@ -236,7 +236,7 @@ export function useGitLogData(workspaceID: string): IGitLogData { // Only log if entries actually changed if (entriesFingerprint !== lastLoggedEntriesReference.current) { lastLoggedEntriesReference.current = entriesFingerprint; - + // Log immediately for E2E test reliability // No need for setTimeout - entries state is already updated void window.service.native.log('debug', '[test-id-git-log-data-rendered]', { @@ -244,7 +244,7 @@ export function useGitLogData(workspaceID: string): IGitLogData { wikiFolderLocation: workspaceInfo.wikiFolderLocation, entriesFingerprint, }); - + void window.service.native.log('debug', '[test-id-git-log-refreshed]', { commitCount: entries.length, wikiFolderLocation: workspaceInfo.wikiFolderLocation,