• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

clay / claycli / 31738592455
87%
master: 87%

Build:
Build:
LAST BUILD BRANCH: jowen/page-publish-flag
DEFAULT BRANCH: master
Ran 13 Aug 2026 07:59PM UTC
Jobs 1
Files 30
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

13 Aug 2026 07:58PM UTC coverage: 87.018% (-0.07%) from 87.084%
31738592455

Pull #256

github

jjpaulino
🍕 Stop component client.js from running in Kiln edit mode

The Vite pipeline serves the view-mode bootstrap in edit mode, and that
bootstrap calls mountComponentModules() at module scope — so every on-page
component's client.js executes as soon as the module evaluates, while an
editor is in Kiln.

The legacy clay compile pipeline resolved client.js for view mode only (the
edit branch of getDependencies() ships model.js, kiln.js and kiln plugins,
but no client bundle and no _client-init.js), so this is a regression from
clay compile. It runs ads (GPT injects an iframe per slot), analytics and
comment embeds inside the editing surface, where they mutate the DOM Kiln
is trying to decorate.

Generate a second entry, .clay/vite-bootstrap-no-mount.js, from the same
initializer prelude — the window.modules stub, _env-init, _globals-init and
the sticky-events shim, all of which edit mode genuinely needs — but without
the mount runtime, and serve that in edit mode. resolveModuleScripts() takes
mountInEditMode to opt back in, and falls back to the mounting bootstrap when
public/js was built by a claycli predating the new entry.

Co-authored-by: Cursor <cursoragent@cursor.com>
Pull Request #256: 🍕 Stop component client.js from running in Kiln edit mode

760 of 945 branches covered (80.42%)

Branch coverage included in aggregate %.

22 of 24 new or added lines in 2 files covered. (91.67%)

1633 of 1805 relevant lines covered (90.47%)

10.91 hits per line

Uncovered Changes

Lines Coverage ∆ File
2
73.06
-0.17% lib/cmd/vite/scripts.js
Jobs
ID Job ID Ran Files Coverage
1 31738592455.1 13 Aug 2026 07:59PM UTC 30
87.02
GitHub Action Run
Source Files on build 31738592455
  • Tree
  • List 30
  • Changed 2
  • Source Changed 2
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #31738592455
  • Pull Request #256
  • PR Base - master (#28599037181)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc