Files
nick-doc/Issues/ISSUE-120-frontend-50ms-setinterval-console-suppression-script-in-root-l.md
Siavash Sameni dceaf82934 audit: 2026-05-30 full-codebase audit — report, issues, docs, runbooks
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>
2026-05-30 18:48:04 +04:00

1.4 KiB

issue, title, severity, domain, labels, status, created, source
issue title severity domain labels status created source
120 Frontend: 50ms setInterval console-suppression script in root layout high Observability
bug
frontend
logging
open 2026-05-30 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