OpenFn / OpenFn/lightning

AI Assistant: only attach the selected code

Open
#2,940 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

By default the AI assistant will attach a user's whole job code to the request. But this could be large - especially if the code includes large data structures, as it often does.

It would be need if

  1. When the user selects text, only that code is sent to the model
  2. This is communicated somehow

One way to communicate this would be to use #2935 and instead of a code checkbox, you do "All Code" by default, and "Selected code" when the user highlights text.

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 by reviewing issue #2935 and tracing the current AI assistant request flow to see how whole-job code is attached and how the code option is communicated. Define the selected-text and no-selection behaviors, then verify that the interface clearly distinguishes “All Code” from “Selected code” and that only the intended code is sent.

Written by the indexing model from the issue text.

Assessment

Domain
ai
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.