Console reports successful copies when clipboard writes fail

Open
#336 1 comment 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

@CNSeniorious000 is already working on this.

Since Nov 11, 2026.

  • #337 by @CNSeniorious000 — open

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
35/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Stale
Tech stack
javascript
Domain
frontend

Research direction

Reproduce the failure on the playground URL using the DevTools override shown in the issue, then trace the handler for the Copy text button. Make the success message depend on the clipboard write resolving and report a rejected write; verify both outcomes in the UI. Pull request #337 is already open for this issue.

Written by the indexing model from the issue text.

Description

On https://promplate.vercel.app/playground, wait for the initial console commands, then make clipboard writes fail in DevTools:

navigator.clipboard.writeText = () => Promise.reject(new DOMException('Write permission denied', 'NotAllowedError'));

Activate a Copy text button. The UI reports successfully copied 1 line to clipboard, while the rejected write produces an unhandled promise rejection. The handler shows success before calling writeText and never awaits its result.

Show success only after the write resolves, and report failures.

Dominant language
Svelte
Stars
2
Forks
0
Avg merge
18h 1m
Merged PRs (30d)
18

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from promplate/site

All issues in promplate/site

Similar issues

More Web Dev issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.