Skip to content

feat(chat): confirm copied assistant answers - #110

Merged
Upd4ting merged 3 commits into
AntelopeJS:mainfrom
Golden007-prog:feat/109-copy-answer-feedback
Nov 20, 2026
Merged

Upd4ting merged 3 commits into
AntelopeJS:mainfrom
Golden007-prog:feat/109-copy-answer-feedback

Conversation

@Golden007-prog

@Golden007-prog Golden007-prog commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Show a check icon and “Copied” on the assistant answer that was copied. Clear the confirmation after a short delay and cancel its timer on unmount. An unsuccessful clipboard write leaves the copy button unchanged.

Related issue

Fixes #109.

Verification

  • Started the backend and frontend with pnpm dev and pnpm frontend:dev against an isolated local MongoDB. The generated playground frontend returned HTTP 200.
  • All 546 frontend tests and 59 builder tests passed on Linux. Both focused clipboard tests passed again on Windows.
  • pnpm --dir frontend-vue lint, pnpm --dir frontend-vue typecheck:chat, and node scripts/check-i18n.mjs passed.

Checklist

  • The pull request title follows Conventional Commits.
  • I added or updated tests when behavior changed.
  • No credentials or unrelated changes are included.

Prepared with Codex assistance.

Maintainer changes

  • Moved the copy-feedback logic (clipboard write, 1.6 s reset, timer cleared on unmount) into useCopyFeedback, used by MessageList and TurnErrorCard.
  • Dropped the copyRequest counter and the copyAnswerLabel helper.
  • Merged main into the branch.

@Upd4ting
Upd4ting changed the base branch from next to main November 19, 2026 10:02
@Upd4ting
Upd4ting force-pushed the feat/109-copy-answer-feedback branch from 5083090 to e1f08aa Compare November 19, 2026 10:02
@Upd4ting

Copy link
Copy Markdown
Member

Retargeted from next to main because next is retired; the branch is rebased onto main with only this PR's own commit. main now merges through the merge queue.

@Upd4ting
Upd4ting enabled auto-merge November 20, 2026 19:21
@Upd4ting
Upd4ting added this pull request to the merge queue Nov 20, 2026
Merged via the queue into AntelopeJS:main with commit 7cf922a Nov 20, 2026
14 of 16 checks passed
@Upd4ting

Copy link
Copy Markdown
Member

Thanks for this, @Golden007-prog, and for taking on #109. The copy feedback works exactly as the issue described, and the clipboard test made it quick to check.

I pushed a couple of changes on top before merging:

  • The copied-state logic now lives in one small composable that both this button and TurnErrorCard use, so the delay and the cleanup are defined once.
  • I dropped the copyRequest counter. For a label that only shows for 1.6 seconds, an out-of-order clipboard write isn't worth guarding against.

Merging now. Thanks again, and hope to see more from you!

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.

feat(chat): confirm "Copied" on the answer copy button

2 participants