Skip to content

Report chat code copy failures - #325

Draft
dajiaohuang wants to merge 1 commit into
Anil-matcha:mainfrom
dajiaohuang:fix/chat-code-copy-feedback
Draft

dajiaohuang wants to merge 1 commit into
Anil-matcha:mainfrom
dajiaohuang:fix/chat-code-copy-feedback

Conversation

@dajiaohuang

Copy link
Copy Markdown

When both browser clipboard and fallback copying fail, chat code blocks silently leave the Copy button unchanged. Show and announce a failure with a manual-copy alternative, keep retry available, and announce successful copying.

Validation: mounted the actual chat Markdown component in a local browser with synthetic clipboard and fallback behavior; checked failure, fallback retry and direct clipboard success. Focused ESLint and frontend TypeScript passed. Real OS clipboard, Electron IPC, assistive technology and full CI were not tested.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant