OpenFn / OpenFn/lightning

Workflow Editor crashes when manual editing is happening while AI edit is in progress

Open
#5,195 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Describe the bug

This happens when you change a node while the AI assistant isn't done with its edits of the workflow.

  1. ask the AI to change a node
  2. as soon as the change is visible on the screen but the AI response is still streaming. change the node to something else
  3. the workflow editor breaks.
    (assumption: probably because you changed the data the AI assistant is working with)
Image

Version number The version of Lightning you have seen the bug on.

If you're running on a tagged version, include the number: vX.Y.Z

If you're running locally with an unreleased version, the commit sha: 84b1bdc

I have reproduced this locally on main:

  • Yes
  • No

To Reproduce Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior A clear and concise description of what you expected to
happen.

Screenshots If applicable, add screenshots to help explain your problem.

Additional context Add any other context about the problem here.

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 in the Workflow Editor by reproducing the sequence described: begin an AI node edit, change the node while the response is streaming, and observe the failure. Trace the error from that interaction and verify that manual edits no longer break the editor while the AI response continues.

Written by the indexing model from the issue text.

Assessment

Tech stack
elixir
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
56/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.