File tree Expand file tree Collapse file tree 2 files changed +4
-43
lines changed
app/workspace/[workspaceId]/w/[workflowId]
lib/copilot/tools/server/workflow Expand file tree Collapse file tree 2 files changed +4
-43
lines changed Original file line number Diff line number Diff line change @@ -1837,7 +1837,7 @@ const WorkflowContent = React.memo(() => {
18371837 } , [ collaborativeSetSubblockValue ] )
18381838
18391839 // Show skeleton UI while loading until the workflow store is hydrated
1840- const showSkeletonUI = ! isWorkflowReady || typeof lastSaved !== 'number'
1840+ const showSkeletonUI = ! isWorkflowReady
18411841
18421842 if ( showSkeletonUI ) {
18431843 return (
@@ -1942,10 +1942,9 @@ const WorkflowContent = React.memo(() => {
19421942 />
19431943
19441944 { /* Trigger list for empty workflows - only show after workflow has loaded and hydrated */ }
1945- { isWorkflowReady &&
1946- typeof lastSaved === 'number' &&
1947- isWorkflowEmpty &&
1948- effectivePermissions . canEdit && < TriggerList onSelect = { handleTriggerSelect } /> }
1945+ { isWorkflowReady && isWorkflowEmpty && effectivePermissions . canEdit && (
1946+ < TriggerList onSelect = { handleTriggerSelect } />
1947+ ) }
19491948 </ div >
19501949 </ div >
19511950 )
Original file line number Diff line number Diff line change @@ -96,44 +96,6 @@ export const buildWorkflowServerTool: BaseServerTool<
9696 // Use sanitized state if available
9797 const finalWorkflowState = validation . sanitizedState || workflowState
9898
99- // Apply positions using smart layout
100- const positionResponse = await fetch ( `${ SIM_AGENT_API_URL } /api/yaml/apply-layout` , {
101- method : 'POST' ,
102- headers : { 'Content-Type' : 'application/json' } ,
103- body : JSON . stringify ( {
104- workflowState : finalWorkflowState ,
105- options : {
106- strategy : 'smart' ,
107- direction : 'auto' ,
108- spacing : {
109- horizontal : 500 ,
110- vertical : 400 ,
111- layer : 700 ,
112- } ,
113- alignment : 'center' ,
114- padding : {
115- x : 250 ,
116- y : 250 ,
117- } ,
118- } ,
119- } ) ,
120- } )
121-
122- if ( ! positionResponse . ok ) {
123- const errorText = await positionResponse . text ( ) . catch ( ( ) => '' )
124- logger . warn ( 'Failed to apply layout to workflow' , {
125- status : positionResponse . status ,
126- error : errorText ,
127- } )
128- // Non-critical error - continue with unpositioned workflow
129- } else {
130- const layoutResult = await positionResponse . json ( )
131- if ( layoutResult . success && layoutResult . workflowState ) {
132- // Update the workflow state with positioned blocks
133- Object . assign ( finalWorkflowState , layoutResult . workflowState )
134- }
135- }
136-
13799 return {
138100 success : true ,
139101 workflowState : finalWorkflowState ,
You can’t perform that action at this time.
0 commit comments