Skip to content

Automate browser based workflows with AI

fix: refresh credentials list on mount to show saved-profile tag (#5138)

Celal Zamanoğlu203e0ac7291b
diff --git a/skyvern-frontend/src/routes/credentials/useBackgroundCredentialTest.ts b/skyvern-frontend/src/routes/credentials/useBackgroundCredentialTest.ts
index 2db413152..410959f7c 100644
--- a/skyvern-frontend/src/routes/credentials/useBackgroundCredentialTest.ts
+++ b/skyvern-frontend/src/routes/credentials/useBackgroundCredentialTest.ts
@@ -88,6 +88,19 @@ function useBackgroundCredentialTest() {
}
if (data.status === "completed") {
+ // The backend sets browser_profile_id in a separate background task
+ // AFTER the workflow completes. If the profile isn't ready yet and
+ // no failure reason has been reported, keep polling.
+ if (!data.browser_profile_id && !data.browser_profile_failure_reason) {
+ if (activeTestRef.current) {
+ activeTestRef.current.timeoutId = setTimeout(
+ poll,
+ POLL_INTERVAL_MS,
+ );
+ }
+ return;
+ }
+
cleanup();
queryClient.invalidateQueries({ queryKey: ["credentials"] });
diff --git a/skyvern-frontend/src/routes/workflows/hooks/useCredentialsQuery.ts b/skyvern-frontend/src/routes/workflows/hooks/useCredentialsQuery.ts
index 1749b927d..873a5ed75 100644
--- a/skyvern-frontend/src/routes/workflows/hooks/useCredentialsQuery.ts
+++ b/skyvern-frontend/src/routes/workflows/hooks/useCredentialsQuery.ts
@@ -27,6 +27,7 @@ function useCredentialsQuery(props: Props = {}) {
params.set("page_size", String(page_size));
return client.get("/credentials", { params }).then((res) => res.data);
},
+ refetchOnMount: "always",
...queryOptions,
});
}
diff --git a/uv.lock b/uv.lock
index 8de120fa4..1a5a8b99b 100644
--- a/uv.lock
+++ b/uv.lock
@@ -1413,7 +1413,7 @@ wheels = [
[[package]]
name = "google-cloud-aiplatform"
-version = "1.141.0"
+version = "1.136.0"
source = { registry = "https://pypi.org/simple" }
dependencies = [
{ name = "docstring-parser" },
@@ -1429,9 +1429,9 @@ dependencies = [
{ name = "pydantic" },
{ name = "typing-extensions" },
]
-sdist = { url = "https://files.pythonhosted.org/packages/ac/dc/1209c7aab43bd7233cf631165a3b1b4284d22fc7fe7387c66228d07868ab/google_cloud_aiplatform-1.141.0.tar.gz", hash = "sha256:e3b1cdb28865dd862aac9c685dfc5ac076488705aba0a5354016efadcddd59c6", size = 10152688, upload-time = "2026-03-10T22:20:08.692Z" }
+sdist = { url = "https://files.pythonhosted.org/packages/7f/9c/38ce04e3ef89034c736320a27b4a6e3171ca2f3fb56d38f76a310c745d14/google_cloud_aiplatform-1.136.0.tar.gz", hash = "sha256:01e64a0d0861486e842bf7e904077c847bcc1b654a29883509d57476de915b7d", size = 9946722, upload-time = "2026-02-04T16:28:12.903Z" }
wheels = [
- { url = "https://files.pythonhosted.org/packages/6a/fc/428af69a69ff2e477e7f5e12d227b31fe5790f1a8234aacd54297f49c836/google_cloud_aiplatform-1.141.0-py2.py3-none-any.whl", hash = "sha256:6bd25b4d514c40b8181ca703e1b313ad6d0454ab8006fc9907fb3e9f672f31d1", size = 8358409, upload-time = "2026-03-10T22:20:04.871Z" },
+ { url = "https://files.pythonhosted.org/packages/55/e8/f317dc96c9c73846dd3e4d16691cc5f248801f46354d9d57f2c67fd67413/google_cloud_aiplatform-1.136.0-py2.py3-none-any.whl", hash = "sha256:5c829f002b7b673dcd0e718f55cc0557b571bd10eb5cdb7882d72916cfbf8c0e", size = 8203924, upload-time = "2026-02-04T16:28:10.343Z" },
]
[[package]]