Skip to content

Commit 336bc11

Browse files
committed
feat(ui): add checkout_commit_push action to agent_loop
1 parent 33ad5c0 commit 336bc11

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

examples/hf_demo_space/app.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -410,6 +410,15 @@ async def agent_loop(message: Optional[cl.Message]=None, codeIdentifiers: Option
410410
)
411411
)
412412

413+
msg.actions.append(
414+
cl.Action(
415+
name="checkout_commit_push",
416+
tooltip="A new branch will be created and the changes made so far will be commited and pushed to the upstream repository",
417+
icon="circle-fading-arrow-up",
418+
payload={"msg_id": msg.id}
419+
)
420+
)
421+
413422
# Send the final message
414423
await msg.send()
415424

0 commit comments

Comments
 (0)