diff --git a/skyvern-frontend/src/routes/tasks/list/TaskHistory.tsx b/skyvern-frontend/src/routes/tasks/list/TaskHistory.tsx
index 37ea2539..4fa1c9b0 100644
--- a/skyvern-frontend/src/routes/tasks/list/TaskHistory.tsx
+++ b/skyvern-frontend/src/routes/tasks/list/TaskHistory.tsx
@@ -60,6 +60,18 @@ function TaskHistory() {
return
Error: {error?.message}
;
}
+ function handleNavigate(event: React.MouseEvent, id: string) {
+ if (event.ctrlKey || event.metaKey) {
+ window.open(
+ window.location.origin + `/tasks/${id}/actions`,
+ "_blank",
+ "noopener,noreferrer",
+ );
+ } else {
+ navigate(`${id}/actions`);
+ }
+ }
+
return (
<>
@@ -86,33 +98,25 @@ function TaskHistory() {
{
- navigate(`${task.task_id}/actions`);
- }}
+ onClick={(event) => handleNavigate(event, task.task_id)}
>
{task.task_id}
{
- navigate(`${task.task_id}/actions`);
- }}
+ onClick={(event) => handleNavigate(event, task.task_id)}
>
{task.request.url}
{
- navigate(`${task.task_id}/actions`);
- }}
+ onClick={(event) => handleNavigate(event, task.task_id)}
>
{
- navigate(`${task.task_id}/actions`);
- }}
+ onClick={(event) => handleNavigate(event, task.task_id)}
>
{basicTimeFormat(task.created_at)}
diff --git a/skyvern-frontend/src/routes/tasks/running/QueuedTasks.tsx b/skyvern-frontend/src/routes/tasks/running/QueuedTasks.tsx
index 8aa5b161..dd2b657d 100644
--- a/skyvern-frontend/src/routes/tasks/running/QueuedTasks.tsx
+++ b/skyvern-frontend/src/routes/tasks/running/QueuedTasks.tsx
@@ -32,6 +32,18 @@ function QueuedTasks() {
},
});
+ function handleNavigate(event: React.MouseEvent, id: string) {
+ if (event.ctrlKey || event.metaKey) {
+ window.open(
+ window.location.origin + `/tasks/${id}/actions`,
+ "_blank",
+ "noopener,noreferrer",
+ );
+ } else {
+ navigate(`${id}/actions`);
+ }
+ }
+
return (
@@ -54,9 +66,7 @@ function QueuedTasks() {
{
- navigate(`${task.task_id}/actions`);
- }}
+ onClick={(event) => handleNavigate(event, task.task_id)}
>
{task.task_id}
diff --git a/skyvern-frontend/src/routes/tasks/running/RunningTasks.tsx b/skyvern-frontend/src/routes/tasks/running/RunningTasks.tsx
index c9eb757d..5c91ce31 100644
--- a/skyvern-frontend/src/routes/tasks/running/RunningTasks.tsx
+++ b/skyvern-frontend/src/routes/tasks/running/RunningTasks.tsx
@@ -36,14 +36,24 @@ function RunningTasks() {
return No running tasks
;
}
+ function handleNavigate(event: React.MouseEvent, id: string) {
+ if (event.ctrlKey || event.metaKey) {
+ window.open(
+ window.location.origin + `/tasks/${id}/actions`,
+ "_blank",
+ "noopener,noreferrer",
+ );
+ } else {
+ navigate(`/tasks/${id}/actions`);
+ }
+ }
+
return runningTasks?.map((task) => {
return (
{
- navigate(`/tasks/${task.task_id}/actions`);
- }}
+ onClick={(event) => handleNavigate(event, task.task_id)}
>