Skip to content

Commit 03671ba

Browse files
committed
Update workflow management to call the workflow endpoint for active workflow updates
1 parent 35506e6 commit 03671ba

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

components/frontend/src/app/projects/[name]/sessions/[sessionName]/hooks/use-workflow-management.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,12 +63,11 @@ export function useWorkflowManagement({
6363
throw new Error(errorData.error || "Failed to update workflow");
6464
}
6565

66-
// 2. Send WebSocket message to trigger workflow clone and restart
67-
await fetch(`/api/projects/${projectName}/agentic-sessions/${sessionName}/messages`, {
66+
// 2. Call the workflow endpoint to update the active workflow
67+
await fetch(`/api/projects/${projectName}/agentic-sessions/${sessionName}/workflow`, {
6868
method: "POST",
6969
headers: { "Content-Type": "application/json" },
7070
body: JSON.stringify({
71-
type: "workflow_change",
7271
gitUrl: workflow.gitUrl,
7372
branch: workflow.branch,
7473
path: workflow.path || "",

0 commit comments

Comments
 (0)