OpenHands icon indicating copy to clipboard operation
OpenHands copied to clipboard

frontend: Add [continue] and [finish] button for user to click when agent is awaiting user input

Open xingyaoww opened this issue 1 year ago • 2 comments

What problem or use case are you trying to solve?

Now that https://github.com/OpenDevin/OpenDevin/pull/1290 is merged that supports awaiting user input, the agent may ask the user for confirmation (e.g., i propose we do X, Y, Z, do you agree?). It is a bit hassle for user to manually type in "continue" and send it to the agent.

Describe the UX of the solution you'd like

Add two buttons when the agent is awaiting user input:

  • continue: sends a message "continue" to the agent
  • finish: end the current task and starts a new one.

It will look smth like this: image

Do you have thoughts on the technical implementation?

Describe alternatives you've considered

Additional context

You can start work on this by using CodeActAgent, asking it "Can you print hello world first, then plot a figure of equation (y=x, x=0,1,2,3,4) using matplotlib?".

Demo video:

https://github.com/OpenDevin/OpenDevin/assets/38853559/745733b3-788f-4d44-b0b0-3454fbe4f1fe

xingyaoww avatar May 01 '24 12:05 xingyaoww

image

is the reset equal to finish? if so, we only need to adjust the behavior to continue the current task.

iFurySt avatar May 01 '24 12:05 iFurySt

@iFurySt make sense! maybe we can just add a continue button then! User would probably just close the web page if they think they are done with this ;)

xingyaoww avatar May 01 '24 12:05 xingyaoww

Resolved #1508

amanape avatar May 10 '24 10:05 amanape