OpenFn / OpenFn/lightning

Click to copy code block from AI chat

Open
#3,345 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature enhancement
Dominant language
Elixir
Stars
296
Forks
86
Avg merge
1d 13h
Merged PRs (30d)
50

Description

As an AI chat user, I'm constantly asking for OpenFn to suggest code for me to test out. There's a click-to-copy button, but it copies the whole message. I'd like to be able to copy just the code in the code block.

Image

See the "copy" button there? It's for the whole message. I'd like something like that for only the code in the code block above so I can paste it where I want in the expression.

(Later, we expect to suggest the new code directly in the expression editor and have the user accept/reject.)

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

The issue names no files or tests; start by locating the AI chat interface and its existing whole-message copy control. Confirm how code blocks are rendered and define done as allowing a user to copy only the contents of an individual code block without copying the surrounding message.

Written by the indexing model from the issue text.

Assessment

Tech stack
elixir
Domain
ai, frontend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.