Live artifacts load their write access once at startup, so the first edit feels faster.
What's wrong with this entry?
All three artifact templates now request the artifact namespace once at load through claude.use('artifact') and cache it, instead of looking it up lazily on each edit, so the first edit rarely waits.
- Falls back to the old lazy
claude.artifact || claude.selflookup whenclaude.useis not a function. - A new pending state covers the window between asking and answering: edits are tracked as if the document were live, and the status is not prematurely set to
Local only. When the request resolves the template either saves the pending edits or reportsLocal only. - Off in this build; the templates only persist on live documents where the runtime grants the artifact capability.
Ask for the namespace at load so the first edit rarely waits on it.
Strings lifted out of the shipped bundle, so the claim above can be checked against them.