---
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]]
