Skip to content

fix(core): the shell no longer paints a noise texture under its pages - #684

Merged
allisonmahmood merged 1 commit into
mainfrom
fix/591-shell-noise-overlay
Oct 15, 2026
Merged

allisonmahmood merged 1 commit into
mainfrom
fix/591-shell-noise-overlay

Conversation

@allisonmahmood

Copy link
Copy Markdown
Owner

The shared first-party shell (htmlPage) painted a fixed feTurbulence noise texture behind every page. On every page whose policy allowed it, body's opaque background covered it. On the HTML 404, the strict fallback CSP blocked it and logged a violation. Since #660 added img-src data: to that fallback for the favicon, the 404 no longer logs the violation. Instead, the grain now shows faintly in the strip below the 404's short body, the only place it ever renders.

This PR deletes the body::before rule from htmlPage's stylesheet. No content-security-policy changes. examples/plan.html keeps its copy because it isn't served, and the 404's layout is #618.

One note against the brief: its "no CSP violation on dev shot /nothing" criterion was already true on main because of #660. On the 404, this PR changes the lower strip, which goes back to plain paper. That is how the 404 looked when the brief was written.

Tested by hand (pnpm dev up team, then pnpm dev down):

  • pnpm dev shot ada /nothing: the before shot had faint grain below the body; the after shot is plain paper. Both runs reported only one browser error, the document's own 404.
  • Playwright, with fresh contexts for the signed-out sign-in door / and, as Ada, /, /company, /company/connections, /whats-new, /~shell/notice/access_denied and /nothing, at 390×844, 900×600 and 1600×1400. I compared each page as served against the same page with the deleted rule injected back. The screenshots are byte-identical everywhere except /nothing.
  • curl: none of those responses contain feTurbulence. The /nothing content-security-policy is byte-identical to the one captured before the change.
  • vitest for core, serving Pages, portal and auth: 271 tests passed on the rebased branch. CI runs the full suites.

Hit every surface: only Served pages applied. The ui-consistency spec says nothing about the overlay, and the fixtures under packages/core/fixtures are patch HTML, so neither changes. The company look's LOOK.md already records the noise overlay as dropped. Wire contract, CLI, dev loop, vocabulary, migrations, company resources, reverse states and repo layout don't apply.

Closes #591

Made by Claude Opus 5.5 in Claude Code, running in T3 Code.

@allisonmahmood

Copy link
Copy Markdown
Owner Author

GPT 6.1 Sol (xhigh, read-only, one pass) reviewed origin/main...HEAD against #591 and its brief: no findings. It confirmed nothing depends on the removed rule's stacking, there are no other served copies or stale docs or fixtures, no CSP changed, and the commit message's account of #660 matches shell-headers.ts.

@github-actions github-actions Bot added area:core Touches the core area area:ui Portal and first-party browser pages, shared rendering and styles size:s Under 100 changed lines labels Oct 15, 2026
The shared shell's body::before noise overlay sat beneath body's opaque
background on every page that allowed it. The HTML 404 blocked it under
the fallback CSP until the favicon change added img-src data:, and since
then it shows only as faint grain in the strip below the 404's short
body. Delete it; no policy changes.

Closes #591

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@allisonmahmood
allisonmahmood force-pushed the fix/591-shell-noise-overlay branch from f37bc5e to efbc66a Compare October 15, 2026 17:36
@allisonmahmood
allisonmahmood merged commit 62e425b into main Oct 15, 2026
13 checks passed
@allisonmahmood
allisonmahmood deleted the fix/591-shell-noise-overlay branch October 15, 2026 19:16
allisonmahmood added a commit that referenced this pull request Oct 16, 2026
…u when they fail (#720)

Release 13's What's new entry, written from `c9b8fc4`, ahead of
deploying it. `patchy` and `CURRENT_RELEASE` move to `0.13.0`, so CLIs
and patch repos installed before this deploy are told to upgrade.

| Change | PRs |
| --- | --- |
| New: Home puts the patches you use first | #713, #716, #719 |
| New: Every patch in one list | #715 |
| Improved: Each patch's page leads with Open | #717 |
| New: See when your tools are failing | #718 |
| Fixed: Everyone has a name | #687 |
| Improved: Your company's look is easier to get right | #697, #696,
#703, #688 |
| Improved: Forms follow your look's error states | #691, #692 |
| Improved: Clearer answers when a publish goes wrong | #686, #685, #689
|
| Fixed: Your agent's Patchy commands are steadier | #695, #704, #680,
#681 |
| Behind the scenes: stricter checks on static pages and tools' database
requests; malformed requests are logged | #682, #693, #683 |
| Behind the scenes: usage numbers count every publish, sharing change
and restore | #698, #699, #700, #690 |
| Test and tooling only, no line | #705, #702, #701, #694, #684, #607 |

Made by Claude Opus 5.5 in Claude Code, running in T3 Code.

Co-authored-by: Claude Opus 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:core Touches the core area area:ui Portal and first-party browser pages, shared rendering and styles size:s Under 100 changed lines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(core): the first-party 404 page's noise SVG violates its own CSP

1 participant