fix(a11y): copying a prompt in Workspace shows a notification that screen readers read (#32905)

This commit is contained in:
G30 2026-10-22 13:50:03 -04:00 • committed by GitHub
parent f844f6e893
commit e231ca160b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -295,6 +295,7 @@
const copyHandler = async (prompt) => {
const res = await copyToClipboard(prompt.content);
if (res) {
toast.success($i18n.t('Copied to clipboard'));
copiedId = prompt.command;
setTimeout(() => {
copiedId = null;