Widget: copy a completed assistant reply
I maintainer di solito rispondono entro 1 giorno
Valutazione
Questa issue non è ancora stata valutata.
Descrizione
What problem would this solve?
Visitors often need to reuse an answer outside the chat. Selecting a long rendered reply is awkward on phones and can be error-prone around formatted text and code blocks.
What would you like to happen?
Add a copy action to completed assistant replies. Copy the reply as readable plain text, preserving code block contents and line breaks without copying Markdown syntax. Keep the action out of the streaming state, make it keyboard accessible, and announce success or failure without disrupting the existing reply announcement.
Where to look
packages/widget/src/dom/messages.tsrenders assistant messages and reply actions.packages/widget/src/i18n.tsholds the widget’s accessible UI strings.packages/widget/src/styles/widget.csscontains message action styles.packages/widget/tests/dom/messages.test.tscovers message rendering.
Acceptance criteria
- A copy button is available for a completed assistant reply and is not shown while that reply is streaming.
- Clipboard failures are handled without an uncaught error, including when the Clipboard API is unavailable.
- The control has a localized accessible name, a visible focus indicator, and an accessible confirmation of the result.
- Tests cover copying formatted content, streaming replies, and clipboard failure.
- Add a widget changeset; keep the gzipped bundle within the configured size budget.
Contributing
- I’d like to work on this myself
- Lingua principale
- TypeScript
- Stelle
- 13
- Fork
- 7
- Merge medio
- 3h 28m
- PR unite (30g)
- 296
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di codercops/chatcops
-
Core README lists old default modelsForse già presa @prakashNalla l’ha presa oggi. Aperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 90/100
codercops/chatcops#503 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Widget: theme.tokens to set any color or size token, and the full token table in the docsForse già presa @Sreehita-here l’ha presa oggi. Apertahacktoberfest
codercops/chatcops#500 · 2 commenti · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
Widget: a header menu with New conversation, Download transcript and a privacy linkForse già presa @anurag2787 l’ha presa oggi. Apertahacktoberfest
codercops/chatcops#496 · 4 commenti · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
Widget: keep a message sent while offline, and send it when the connection is backForse già presa @Saifjafri212213 l’ha presa oggi. Apertahacktoberfest
codercops/chatcops#495 · 3 commenti · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
Server: validate `rateLimit.windowMs` before creating the limiterForse già presa @ashutoshpalhare l’ha presa 1 giorno fa. Aperta
codercops/chatcops#452 · 1 commento · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di codercops/chatcops
Issue simili
-
Replace discontinued crypto-js in the themeForse già presa @aelmanaa l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
PaloAltoNetworks/docusaurus-openapi-docs#1689 ·
I maintainer di solito rispondono entro 2 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
solana-foundation/solana-web3.js#4015 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
formatSearchQuery drops the :present modifier, so `email:present=true` is sent as `email=true`Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
I maintainer di solito rispondono entro 1 giorno
-
documentation
Difficoltà 1/5 1-3 ore Idoneità per principianti 90/100
ivopogace/opencode-courier#422 ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
chapel-lang/chapel-vscode#158 ·
I maintainer di solito rispondono entro 1 giorno