Title: Add a "Copy" (copy-as-Markdown) action to assistant/agent responses · Issue #70 · modelstudioai/openwork · GitHub
Open Graph Title: Add a "Copy" (copy-as-Markdown) action to assistant/agent responses · Issue #70 · modelstudioai/openwork
X Title: Add a "Copy" (copy-as-Markdown) action to assistant/agent responses · Issue #70 · modelstudioai/openwork
Description: Problem or Motivation OpenWork already lets you copy user messages (hover → copy) and code blocks (each CodeBlock has a copy button), but a full assistant/agent response cannot be copied. The only hover action on an assistant bubble is "...
Open Graph Description: Problem or Motivation OpenWork already lets you copy user messages (hover → copy) and code blocks (each CodeBlock has a copy button), but a full assistant/agent response cannot be copied. The only ...
X Description: Problem or Motivation OpenWork already lets you copy user messages (hover → copy) and code blocks (each CodeBlock has a copy button), but a full assistant/agent response cannot be copied. The only ...
Opengraph URL: https://github.com/modelstudioai/openwork/issues/70
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Add a \"Copy\" (copy-as-Markdown) action to assistant/agent responses","articleBody":"## Problem or Motivation\n\nOpenWork already lets you copy **user** messages (hover → copy) and **code blocks** (each `CodeBlock` has a copy button), but a full **assistant/agent response** cannot be copied. The only hover action on an assistant bubble is \"open in new window\" (pop-out). To grab a response today you have to manually select the rendered text, which loses the Markdown and is awkward for long, multi-block answers.\n\nEvery comparable AI desktop surface offers a per-message copy:\n- **Codex desktop** — \"Copy as Markdown\" is one of its most-requested features (openai/codex [#2880](https://github.com/openai/codex/issues/2880), [#17241](https://github.com/openai/codex/issues/17241)).\n- **Claude desktop / ChatGPT desktop** — every assistant message has a copy button.\n\nThis is a clear, frontend-only parity gap.\n\n## Proposed Solution\n\nAdd a **Copy** button to the assistant message bubble's hover actions (next to the existing pop-out control) that copies the response's raw Markdown (`message.content`) to the clipboard.\n\n- Renderer-only: `navigator.clipboard.writeText(message.content)`, a 2-second \"copied\" check state, and a `toast.copyFailed` on error — mirroring the existing user-message copy and `CodeBlock` copy patterns.\n- Extract an `AssistantMessage` component in `ChatDisplay.tsx` so it can own the `copied` state (the same reason `ErrorMessage` was already extracted — a hook can't live in `MessageBubble`'s role switch).\n- Only shown on a settled (non-streaming) response.\n- **Zero new i18n keys** — reuses `common.copy`, `common.copied`, `toast.copyFailed`.\n\n**Feasibility: frontend-only.** No qwen-code backend change — it reads text already in the rendered message and calls the Web Clipboard API.\n\n## Alternatives Considered\n\n- A \"Copy as Markdown\" entry in a per-message context menu — heavier and less discoverable than a hover button; OpenWork's assistant bubble already has an inline hover-action slot (pop-out), so a sibling button fits the existing pattern.\n- Copying the *entire* conversation — larger surface; per-message copy is the atomic, most-requested unit and can be composed later.\n\n## Additional Context\n\n**Acceptance / CDP assertion (`e2e/assertions/copy-message.assert.ts`):** seed a user+assistant session on disk (via a new backend-independent `seed` hook on the e2e harness — the embedded `SessionManager` loads it on boot), open it, and drive the copy button. Assert that clicking it (a) writes the **exact** response Markdown to the clipboard and (b) flips the button into its `data-copied=\"true\"` state — proving it copies the right content and is a real wired action, not just an icon.\n\nPart of the autonomous desktop-feature loop (`loop-bot`).","author":{"url":"https://github.com/DragonnZhang","@type":"Person","name":"DragonnZhang"},"datePublished":"2026-07-08T13:43:50.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/70/openwork/issues/70"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:95cef98c-f7f7-40c2-862a-7584dac797aa |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DA98:5FC26:847B91:BFDF65:6A54AAEE |
| html-safe-nonce | d8652b051bf706e77d3ff0837648fa5d743c14a884f3a9a7fbefff10e1ab47a6 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQTk4OjVGQzI2Ojg0N0I5MTpCRkRGNjU6NkE1NEFBRUUiLCJ2aXNpdG9yX2lkIjoiNzM2Mjk0NjY3NDUxMDMxMDEyNiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 53dee689c5e04835f3569591482e7b329d7f3dc11e032791e60df30ddb1f7d50 |
| hovercard-subject-tag | issue:4838018010 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/modelstudioai/openwork/70/issue_layout |
| twitter:image | https://opengraph.githubassets.com/78edc887f0202acb2c51c7f6ab1e4ca306198307a9b979ced1ec41a95534ecf8/modelstudioai/openwork/issues/70 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/78edc887f0202acb2c51c7f6ab1e4ca306198307a9b979ced1ec41a95534ecf8/modelstudioai/openwork/issues/70 |
| og:image:alt | Problem or Motivation OpenWork already lets you copy user messages (hover → copy) and code blocks (each CodeBlock has a copy button), but a full assistant/agent response cannot be copied. The only ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | DragonnZhang |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| turbo-cache-control | no-preview |
| go-import | github.com/modelstudioai/openwork git https://github.com/modelstudioai/openwork.git |
| octolytics-dimension-user_id | 283556804 |
| octolytics-dimension-user_login | modelstudioai |
| octolytics-dimension-repository_id | 1256697754 |
| octolytics-dimension-repository_nwo | modelstudioai/openwork |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1256697754 |
| octolytics-dimension-repository_network_root_nwo | modelstudioai/openwork |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | f8cfff6384f62259baea531c7f58bc7040f8dd92 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width