Full-codebase-audit 2026-05-30 outputs: - Audit report: 09 - Audits/Full Codebase Audit - 2026-05-30.md - 81 issue files ISSUE-055..135 (decisions + 1 skipped no-brainer). - Scanner docs from scratch (was zero): architecture, data model, API ref, payment flow, operations runbook + repo README. - Doc-sync updates across API reference, data models, flows, design system. - Secret Rotation Runbook (08 - Operations) for the exposed credentials. - Reusable workflow guide (07 - Development) + .claude/workflows/full-codebase-audit.js. Issues remain status:open intentionally — the code fixes are uncommitted-then-committed working-tree changes per repo and aren't "resolved" until merged/deployed. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
40 lines
1.4 KiB
Markdown
40 lines
1.4 KiB
Markdown
---
|
|
issue: 120
|
|
title: "Frontend: 50ms setInterval console-suppression script in root layout"
|
|
severity: high
|
|
domain: Observability
|
|
labels: [bug, frontend, logging]
|
|
status: open
|
|
created: 2026-05-30
|
|
source: Full Codebase Audit 2026-05-30
|
|
---
|
|
|
|
# Frontend: 50ms setInterval console-suppression script in root layout
|
|
|
|
**Severity:** high
|
|
**Domain:** Observability
|
|
**Labels:** bug, frontend, logging
|
|
|
|
## Description
|
|
|
|
`src/app/layout.tsx:139` contains a `setInterval` that repeatedly overrides `console.error`/`console.warn` every 50ms. This creates a recurring CPU microtask throughout the page lifecycle. The goal appears to be silencing an Emotion/MUI SSR warning, but the approach overrides the console globally on every tick.
|
|
|
|
## Options
|
|
|
|
1. Remove the suppression script entirely and address the underlying Emotion/MUI SSR warning properly.
|
|
2. Keep one-time suppression (no interval) gated to development only.
|
|
3. Replace with a single non-polling console override applied once at module load.
|
|
|
|
## Recommendation
|
|
|
|
Remove the polling entirely. If the SSR warning must be silenced, apply a single non-polling override and only in development. Coordinate with ISSUE-084 (console suppression masks prod errors).
|
|
|
|
## Affected Files
|
|
|
|
- `frontend/src/app/layout.tsx:139`
|
|
|
|
## References
|
|
|
|
- [Full Codebase Audit 2026-05-30](../09%20-%20Audits/Full%20Codebase%20Audit%20-%202026-05-30.md) — DEC-9
|
|
- [[ISSUE-084-frontend-console-error-warn-suppression-masks-prod-errors|ISSUE-084]]
|