link actions to their screenshots - backend (#4404)

This commit is contained in:
Celal Zamanoglu
2026-01-07 02:12:22 +03:00
committed by GitHub
parent 2f6fd5262b
commit 058a9178aa
7 changed files with 79 additions and 12 deletions

View File

@@ -409,7 +409,8 @@ class ActionHandler:
page=page,
action=action,
)
await app.DATABASE.create_action(action=action)
persisted_action = await app.DATABASE.create_action(action=action)
action.action_id = persisted_action.action_id
return results
context = skyvern_context.current()
@@ -529,7 +530,8 @@ class ActionHandler:
# close the extra page
await pages_after_download[-1].close()
await app.DATABASE.create_action(action=action)
persisted_action = await app.DATABASE.create_action(action=action)
action.action_id = persisted_action.action_id
@staticmethod
async def _handle_action(