fix: redirect agent uploads to specific agent page instead of builder

- Changed redirect destination from `/build?flowID=${response.id}` to `/library/agents/${response.id}`
- Users now navigate directly to their uploaded agent's page in the library
- Removed unnecessary query parameter construction

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

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/agents/${response.id}`;
} catch (error) {
form.setError("root", {
message: `Could not create agent: ${error}`,