Follow Discord
Sweep 25 Sep 2026 · 19:33Z Build v2.1.283 504 read Stable v2.1.274 Latest v2.1.283 Next v2.1.283 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.283 ·

Artifact preview now notices code that calls window.claude.use()

The artifact preview check stubs window.claude.use(), records which capabilities a page asked for, and tells Claude to test those parts after publishing

Group of 2 You'll notice No documentation found Improvements
JSON All of v2.1.283
You'll noticeTier: how much it should matter to you
2Useful: my rating, 1 to 5
3Signal: worth watching, 1 to 5
ArtifactsArea: what it touches
ImprovementsKind: in v2.1.283,
ImprovementsSection of the release

What

When Claude builds an HTML artifact (a small web page or app), Claude Code first loads it in a preview frame and runs a health check on it. The script injected into that frame now defines a read-only window.claude object.

  • window.claude.use(name) records the capability name it was asked for, up to a capped number of names, and then resolves to null.
  • The check's result gains uses and usesMore, which list the requested names and whether more were cut off. These are merged into the preview check alongside the things it already reported: overflows, SVG clipping, Mermaid diagrams, content security policy and dialogs.
  • When a page calls it, Claude is told: "no artifact runtime in preview: window.claude.use() resolved null for …, so the code that needs … did not run here — exercise it after publishing". The names are filled in at runtime.

Why

The preview has no artifact runtime, so any part of a page that depends on window.claude.use() cannot actually run there. Before, the check did not notice this and such code paths could look fine. Now Claude is told which parts were not exercised and that they need testing once the artifact is published.

Read from
Names in the bundlewindow.claude.use
How sure we are
Something disagreesSomething we can check disagrees with this entry, or the writer said they could not settle it.
The writer flagged doubtIt is unclear whether the stand-in object is new or only the reporting of its calls, and how the preview is enabled.

See this entry in the whole of v2.1.283 →

Feedback