posit-dev / posit-dev/shinychat

Add message action buttons (copy, feedback, regenerate, share)

Open
#170 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
139
Forks
28
Avg merge
23h 44m
Merged PRs (30d)
50

Description

Feature Request

Add optional action buttons to assistant messages for common interactions:

  • Copy: Copy message content to clipboard
  • Feedback: Thumbs up/down for rating responses
  • Regenerate: Request a new response
  • Share: Share the message

Usage

chat_ui("chat", message_actions = TRUE)
# or specific actions:
chat_ui("chat", message_actions = c("copy", "feedback"))
chat_ui("chat", message_actions=True)
# or specific actions:
chat_ui("chat", message_actions=["copy", "feedback"])

Events are exposed as Shiny inputs (R: input$ID_message_feedback, Python: @chat.on_message_feedback decorator).

Screenshot

Image

Draft PR

https://github.com/JamesHWade/shinychat/pull/new/feature/message-action-buttons

Contributor guide

No contributing guide indexed for this repository

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.

Research direction

Start from the chat_ui entry points and review how assistant messages and events are currently exposed for R and Python. Define the supported message_actions values and verify that copy, feedback, regenerate, and share actions produce the specified Shiny inputs or Python decorator events. Done means both usage forms and the listed event interfaces work consistently.

Written by the indexing model from the issue text.

Assessment

Tech stack
python, r, typescript
Domain
api, frontend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.