File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
components/frontend/src/app/projects/[name]/sessions/[sessionName]/hooks Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff 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 || "" ,
You can’t perform that action at this time.
0 commit comments