fix: redirect agent uploads to library instead of builder

- Change upload redirect from /build?flowID=${response.id} to /library
- Keeps users in library context after uploading agents
- Fixes issue where agent uploads were pushing to builder instead of library

Fixes #10290

Co-authored-by: Nicholas Tindle <ntindle@users.noreply.github.com>
This commit is contained in:
claude[bot]
2025-07-02 18:05:17 +00:00
committed by GitHub
parent 443995d79a
commit 36821930aa

View File

@@ -82,8 +82,7 @@ export default function LibraryUploadAgentDialog(): React.ReactNode {
description: "Agent uploaded successfully",
variant: "default",
});
const qID = "flowID";
window.location.href = `/build?${qID}=${response.id}`;
window.location.href = `/library`;
} catch (error) {
form.setError("root", {
message: `Could not create agent: ${error}`,