OpenFn / OpenFn/lightning

Global assistant: restore the workflow to any point a conversation reached

Open
#5,120 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

Undo only reaches the newest reply. A change from a few turns back cannot be taken out without re-prompting, and the assistant has usually made several changes by then.

The data is already there. Every global reply carries the workflow as it stood before it, and its own YAML for putting it back, so reaching an older point is a matter of tracking a position rather than a single toggled reply.

Two things stopped us doing it in https://github.com/OpenFn/lightning/pull/5119. Restoring rewrites the shared document under every collaborator and nothing warns them; the current undo already does this, it just is not obvious because it only ever moves one step. And restoring a workflow to a past state is what the versions work is for, so a chat-scoped history built separately would be a second mechanism disagreeing with it.

Worth picking up alongside versions rather than before it. The naming matters too: "undo" is honest for the newest reply and misleading for an older one, where going back also drops everything after it.

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 reading pull request #5119 and the repository's versions work, since this issue explicitly depends on that design. Trace how global replies retain prior workflow state and YAML, then define completion around restoring any reached point, warning collaborators about shared-document changes, and distinguishing older-point restoration from the current newest-reply undo.

Written by the indexing model from the issue text.

Assessment

Tech stack
elixir
Domain
backend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.