Skip to content

Commit e0caa13

Browse files
authored
🤖 Reduce git status console spam for output overflow (#276)
## Problem GitStatusStore logs every OUTPUT TRUNCATED and OUTPUT OVERFLOW error with `console.debug`, creating console spam in large repositories. These errors are common and handled gracefully by the system. ## Solution Filter out these specific error messages from logging. The git status script already has proper overflow handling via `overflow_policy`, so these messages provide no actionable information. ## Changes - Skip logging for errors containing "OUTPUT TRUNCATED" or "OUTPUT OVERFLOW" - Other git status errors still logged normally for debugging - No behavior change, just reduces log noise ## Testing - ✅ `make static-check` passes - Same error handling, just quieter logs
1 parent b6b2de3 commit e0caa13

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/stores/GitStatusStore.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,13 @@ export class GitStatusStore {
219219
}
220220

221221
if (!result.data.success) {
222-
console.debug(`[gitStatus] Script failed for ${metadata.id}:`, result.data.error);
222+
// Don't log output overflow errors at all (common in large repos, handled gracefully)
223+
if (
224+
!result.data.error?.includes("OUTPUT TRUNCATED") &&
225+
!result.data.error?.includes("OUTPUT OVERFLOW")
226+
) {
227+
console.debug(`[gitStatus] Script failed for ${metadata.id}:`, result.data.error);
228+
}
223229
return [metadata.id, null];
224230
}
225231

0 commit comments

Comments
 (0)